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.

Redux Does Not Connect

See original GitHub issue

React 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:

screen shot 2017-08-28 at 7 18 06 pm

However React Native Debugger looks like this: screen shot 2017-08-28 at 7 19 28 pm

(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:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

57reactions
Clete2commented, Aug 29, 2017

@jhen0409 Thank you so much! I had read the documentation but I didn’t understand the difference between remote-redux-devtools and redux-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!

3reactions
BinaryMusecommented, Feb 8, 2018

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 ❤️

Read more comments on GitHub >

github_iconTop 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 >

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