Skip to content

add composeWithDevtools to toolkit example #112

Description

@tnup

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions