Redux Does Not Connect
See original GitHub issueReact Native Debugger version: 0.7.6 React Native version: 0.47.2 Platform: iOS 10.3 Is real device of platform: No; simulator Operating System: macOS Sierra
Using "remote-redux-devtools": "^0.5.12"
Store is created as such:
import reducers from '../reducers/index';
import { composeWithDevTools } from 'remote-redux-devtools';
import { createStore, applyMiddleware } from 'redux';
...
const store = createStore(reducers, composeWithDevTools(applyMiddleware(thunk)));
If I use VSCode Redux Devtools it works:
However React Native Debugger
looks like this:
(Yes even when VSCode is totally closed)
You can see the last line in the log is showing that it’s connected to remotedev-server
as part of devTools.js
which is part of remote-redux-devtools
from what I can tell.
What can be done to troubleshoot?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Why is component not connecting to the redux store?
I tried connecting by using the following url https://react-redux.js.org/api/connect. Any idea on why my component is not connecting to the ...
Read more >Troubleshooting | Redux
Sometimes, you are trying to dispatch an action, but your view does not update. Why does this happen? There may be several reasons...
Read more >How to deal with failure in Redux connect - Medium
We proposed a solution based on an intermediary EitherComponent component that can fallback if we pass empty values.
Read more >Redux connect()() is confusing. Why not use subscribe()?
The connect function makes sure that your component only gets re-rendered if the relevant part of the store gets updated. And you get...
Read more >React Redux connect(): When and how to use it
They are not aware of the Redux state. Presentational components get their data from props and may trigger callbacks passed to them via...
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 FreeTop 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
Top GitHub Comments
@jhen0409 Thank you so much! I had read the documentation but I didn’t understand the difference between
remote-redux-devtools
andredux-devtools-extension
– I figured they worked the same since their wrapper method was the same name. Big mistake!For anyone else who may run into this issue:
yarn remove remote-redux-devtools; yarn add redux-devtools-extension
In
createStore
(no change from above):const store = createStore(reducers, composeWithDevTools(applyMiddleware(thunk)));
But the import (by the same name) now comes from
redux-devtools-extension
:import { composeWithDevTools } from 'redux-devtools-extension';
P.S. @jhen0409 Thanks so much for your hard work on this project. It’s immensely helpful to us!
Just popping in to say that I also had the same misunderstanding as #29 (and this), @Clete2’s comment was exactly what I needed. Thanks to you both ❤️