I want to pass multiple enhancer functions to the createStore function of Redux.
This approach did NOT worked:
const store = createStore(rootReducer, [composeWithDevTools(), applyMiddleware()]); // !!!!! Remove composeWith Dev FOR RELEASE
this was worked when i only passed the DevTools enhancer:
const store = createStore(rootReducer, composeWithDevTools());
im working with React Native for information. How can i pass multiple Enhancer to the CreateStore function? Thank you for your help
EDIT: - SOLVED
after some trying and getting some knowledge about composers (thanks to the tip from the answere) i found the right usage:
const store = createStore(rootReducer, composeWithDevTools(applyMiddleware(ReduxThunk)));