You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, see again, I use follow config for createStore, It's throw Uncaught TypeError: enhancer(...) is not a function
constcomposeEnhancers=process.env.NODE_ENV!=='production'&&typeofwindow==='object'&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__// need become __REDUX_DEVTOOLS_EXTENSION_COMPOSE__({})
? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__()
: compose
Maybe provide a default value for options.
This is my browser console test:
version: 2.13.2
:)
The text was updated successfully, but these errors were encountered:
I know this is confusing, but the problem is not that it doesn't have a default value, but that window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__() (without arguments) is intended to act the same as window.__REDUX_DEVTOOLS_EXTENSION__() (which is a store enhancer, not a compose function, thus expects to get the reducer).
We could remove that, if it causes issues. I remember @jhen0409 was also confused about this not working without arguments.
Hi, see again, I use follow config for createStore, It's throw
Uncaught TypeError: enhancer(...) is not a function
Maybe provide a default value for options.
This is my browser console test:
version: 2.13.2
:)
The text was updated successfully, but these errors were encountered: