It looks like you are passing several store enhancers to createStore()
See original GitHub issueReact Native Debugger app version: v0.8.1 React Native version: 0.57.3 Platform: iOS Is real device of platform: No Operating System: macOS
I am getting this error
It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function
It was working before I updated from 0.55.
This is how I create my store.
import { createStore, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import reducers from '../reducers';
const store = createStore(
reducers,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
compose(applyMiddleware(thunk)),
);
export default store;
It works fine when I use Chrome to debug.
Please help, thanks
Issue Analytics
- State:
- Created 5 years ago
- Reactions:23
- Comments:13
Top Results From Across the Web
node.js - Error passing several store enhancers to createStore()
Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a ...
Read more >Error passing several store enhancers to createStore()-Reactjs
You can use a package to persist the redux store into the local storage and you ... It looks like you are passing...
Read more >Error: It looks like you are passing several store enhancers to ...
Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single...
Read more >Configuring Your Store - Redux
To use multiple enhancers, you must first compose them into a single larger enhancer, as shown in this example. Finally, we pass this...
Read more >Redux-DevTools Error: It looks like you are passing ... - Szhshp
It looks like you are passing several store enhancers to createStore(). ... const store = createStore( Reducer, /* reducer */ window.
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
I’ve just had this same problem with almost exactly the same code, and have managed to fix it.
Instead of passing three arguments to the
createStore
function, you need to pass two. To get around that, while still using the redux dev tools, you need to use the dev tools as the composer itself:I realised this was the solution after digging around the redux library’s, the debugger app’s, and the dev tool’s source code, and found this section: https://github.com/zalmoxisus/redux-devtools-extension#12-advanced-store-setup
Hope this helps!
redux dev tool extension wrap your actions with it’s own action, what you can do is change the order of the middlewares load,
if you place the the redux devtools middleware before your middlewares, you will get the warped action.