Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

state is undefined #3

Closed
radziksh opened this issue May 15, 2017 · 1 comment
Closed

state is undefined #3

radziksh opened this issue May 15, 2017 · 1 comment
Labels

Comments

@radziksh
Copy link

I installed the application, configured the port, but can not see anything in the state. Restart does not help.

environment:
vsCode 1.12.1
typescript: 2.3.2
node: 7.4.0
webpack: 2.5.1

Screenshots:
screenshot_142
screenshot_143
screenshot_144

@jkzing
Copy link
Owner

jkzing commented May 15, 2017

Um...it seems you didn't have a remotedev server running on your localhost, and you did not compose your remote-redux-devtools middleware as well.

Please try following steps to setup:

  1. npm install remotedev-server remote-redux-devtools --save-dev
  2. create a file named remotedev.js (or any name you want)
  3. in remotedev.js:
const remotedev = require('remotedev-server');

remotedev({
    hostname: 'localhost',
    port: 8080,
});
  1. run remotedev.js in shell
node remotedev.js
  1. in your configureStore.js:
import {createStore, applyMiddleware} from 'redux';
import {composeWithDevTools} from 'remote-redux-devtools';

let compose = composeWithDevTools({
    realtime: true,
    name: 'Your Instance Name',
    host: 'localhost',
    port: 8080, 
});

const store = createStore(
    yourReducer,
    compose(
        applyMiddleware(...),
        persistState(...)
    )
);
  1. open your react-redux app in browser
  2. open vscode-redux-devtools in vscode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants