How to connect to redux devtools?
See original GitHub issueI’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:
- Created 3 years ago
- Comments:30 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@RichMatthews can you clarify what specific steps need to be done to get this to work with RN?
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)
First, run the localserver
yarn redux-devtools
then the react application if not already serving someplace
yarn start
finally connect