1.5 For React Native, hybrid, desktop and server side Redux appsįor React Native we can use react-native-debugger, which already included the same API with Redux DevTools Extension.įor most platforms, include Remote Redux DevTools's store enhancer, and from the extension's context menu choose 'Open Remote DevTools' for remote monitoring. If you don’t want to allow the extension in production, just use redux-devtools-extension/developmentOnly. If you're already checking _ENV when creating the store, include redux-devtools-extension/logOnly for production environment. If you use create-react-app, it already does it for you. You'll have to add '_ENV': JSON.stringify('production') in your Webpack config for the production bundle ( to envify). middleware ), // other store enhancers if any ) ) Import ) const store = createStore ( reducer, /* preloadedState, */ composeEnhancers ( applyMiddleware (. Note that starting from v2.7, vToolsExtension was renamed to window._REDUX_DEVTOOLS_EXTENSION_ / window._REDUX_DEVTOOLS_EXTENSION_COMPOSE_. For other browsers and non-browser environment
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |