

The Redux DevTools Extension recently added support for showing action stack traces that show exactly where each action was dispatched. The DevTools Extension docs for EnhancerOptions forĪ list of the specific options that are available. If it is an object, then the DevTools Extension will be enabled, and the options object will be passed to composeWithDevtools(). If this is a boolean, it will be used to indicate whether configureStore should automatically enable support for the Redux DevTools browser extension. Retain the types of the provided middleware when constructing the store.įor more details on how the middleware parameter works and the list of middleware that are added by default, see the If using TypeScript, prefer using this syntax, as we provide a more strongly-typed version of getDefaultMiddleware that will correctly This lets you skip importing getDefaultMiddleware separately. If not provided, configureStore will call getDefaultMiddleware and use theĪrray of middleware functions it returns.Īlternately, you may pass a callback function that will receive getDefaultMiddleware as its argument,Īnd should return a middleware array. configureStore will automatically pass those to applyMiddleware. If this option is provided, it should contain all the middleware functions you middleware #Īn optional array of Redux middleware functions If it is an object of slice reducers, like ,ĬonfigureStore will automatically create the root reducer by passing this object to the If this is a single function, it will be directly used as the root reducer for the store.
