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

[Docs] Improve section Using DevTools #104

Open
davincho opened this issue Aug 17, 2016 · 3 comments
Open

[Docs] Improve section Using DevTools #104

davincho opened this issue Aug 17, 2016 · 3 comments

Comments

@davincho
Copy link

I would suggest to list the exact versions of the required dependencies (react, react-redux and redux-devtools), as with React 14 it was deprecated and with React 15.X there is no React.render anymore, but it was moved to ReactDom.render from react-dom.
Furthermore following the example I had to use version 2.1.5 of redux-devtools as some named exports did not exist in the latest version.

Probably mentioning the Chrome DevTools Extension would be helpful as well:

If you think React is an overkill just for including DevTools, you may would be interested in the Chrome Redux DevTools Extension. Follow these steps to integrate it into you app.

Naive example:

$ngReduxProvider.createStoreWith(rootReducer, [], [window.devToolsExtension()]);

With webpack and define plugin:

const enhancer = [];

if(process.env.NODE_ENV === 'development' && window.devToolsExtension) {
  enhancer.push(window.devToolsExtension());
}

$ngReduxProvider.createStoreWith(rootReducer, [], enhancer);

I am happy to create a PR.

@johnsoftek
Copy link

@davincho Hi, I tried your "naive" example and the Chrome redux extension just says "no store found. Any ideas?

@johnsoftek
Copy link

@davincho Hmm. It's working now. Thanks for the tip.

@ClayChristmas
Copy link
Contributor

I created a PR here that shows an example using the Redux DevTools Extension. I can post how we are using webpack and angular to inject an env constant to determine whether or not the devtools and other middleware should be turned on if you would like.

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

No branches or pull requests

3 participants