add composeWithDevtools to toolkit example
tnup opened this issue · 0 comments
tnup commented
Hello! Great library, thanks!
as a sugestion, you can also add the composeWithDevTools to the toolkit example:
add
import { composeWithDevTools } from "@redux-devtools/extension";
and change
export const store = configureStore({
reducer: combineReducers({
router: routerReducer
}),
middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(routerMiddleware),
});
to:
export const store = configureStore({
reducer: combineReducers({
router: routerReducer
}),
enhancer: [composeWithDevTools()],
middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(routerMiddleware),
});
(add enhancer)