question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to connect to redux devtools?

See original GitHub issue

I’m seeing a fair bit of conflicting info of how to set it up. I’m working with react native

I’ve gone with this:

import { configureStore } from '@reduxjs/toolkit'
import devToolsEnhancer from 'remote-redux-devtools'
import leaguesReducer from '../reducer'

const store = configureStore({
    reducer: {
        leagues: leaguesReducer,
    },
    devTools: false,
    enhancers: [devToolsEnhancer({ realtime: true })],
})

export default store

passing my store into provider. if I log store.getState() it works in the console. I cant connect to devtools, what do I need to do?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:30 (8 by maintainers)

github_iconTop GitHub Comments

11reactions
markeriksoncommented, Mar 23, 2021

@RichMatthews can you clarify what specific steps need to be done to get this to work with RN?

3reactions
solancercommented, Dec 8, 2021

Here’s how I got it working

Installed DevTool cli

yarn add --dev @redux-devtools/cli

add below config as a script

“scripts”: { “redux-devtools”: “redux-devtools --open=electron --hostname=localhost --port=8000” }

Make changes to store like below (don’t forget to add port number same as the script above)

import { configureStore } from '@reduxjs/toolkit'
import authReducer from '../features/auth/authSlice';
import devToolsEnhancer from 'remote-redux-devtools';

export default configureStore({
    reducer: {
        auth:authReducer,
    },
    devTools: false,
    enhancers: [devToolsEnhancer({ realtime: true, port: 8000 })],
})

First, run the localserver

yarn redux-devtools

then the react application if not already serving someplace

yarn start

finally connect

Screenshot 2021-12-08 at 6 09 15 am
Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting Up Redux DevTools — A Simple Guide - Medium
1.Adding Redux DevTools extension to our browser (Google Chrome) Download and install Redux DevTools extension to your chrome browser as shown ...
Read more >
Redux Devtools for Dummies - codeburst
Install Redux browser dev-tools (Chrome and Firefox) · Install dev-tools npm package and import it into store file · Open developer tools with...
Read more >
How to enable Redux Devtools? - reactjs - Stack Overflow
In my chrome extension settings, it is On, site access is set On all sites, Allow access to file URLs is on but...
Read more >
Redux DevTools
Developer Tools. 1,000,000+ users. Overview. Redux DevTools for debugging application's state changes. The extension provides power-ups for your Redux ...
Read more >
Redux - Devtools - Tutorialspoint
Redux - Devtools, Redux-Devtools provide us debugging platform for Redux apps. It allows us to perform time-travel debugging and live editing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found