Deprecating `window.devToolsExtension`
See original GitHub issuewindow.devToolsExtension
is being deprecated in favour of window.__REDUX_DEVTOOLS_EXTENSION__
and window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
. See the README on how to use them and the post about why we added the second function.
Also there’s redux-devtools-extension
npm package to make things easier.
Now we don’t have the order’s and noop functions’ confusion, also the shared window namespace isn’t too vague anymore. The deprecation warnings will come in the next versions and there will be also more sugar for the npm package.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:14 (4 by maintainers)
Top Results From Across the Web
Redux Devtool (chrome extension) not displaying state
window.devToolsExtension is deprecated in favor of window.REDUX_DEVTOOLS_EXTENSION`, and will be removed in next version of Redux DevTools: ...
Read more >redux-devtools-extension - npm
Start using redux-devtools-extension in your project by running `npm i redux-devtools-extension`. ... This package has been deprecated.
Read more >Improve your development workflow with Redux DevTools ...
As a consequence, extension's store enhancer is being deprecated. Hot Reloading with Time Travel helps to boost the developer's productivity ...
Read more >chrome.windows - Chrome Developers
Specifies what type of browser window to create. 'panel' is deprecated and is available only to existing allowlisted extensions on Chrome OS. Type....
Read more >How to use the redux-devtools-extension/logOnlyInProduction ...
scss'); /* eslint-disable no-underscore-dangle */ // const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; const store = createStore( ...
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
@oyeanuj, yes you shouldn’t use both. Best way would be:
New method,
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
, offers the ability to lock enhancers/middlewares (when the corresponding button is clicked) and to dispatch remote actions through other enhancers. See the blog post for more details. If you don’t need those features, you can just replacewindow.devToolsExtension
withwindow.__REDUX_DEVTOOLS_EXTENSION__
.Also note that the extension already includes
persistState
.I think 2 years is enough for everybody to rename
window.devToolsExtension
towindow.__REDUX_DEVTOOLS_EXTENSION__
in their apps. We’ll add a deprecation warning in2.15.5
and remove the variable in3.0
.