zalmoxisus / redux-devtools-extension

Redux DevTools extension.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docs: add installation instructions for configureStore

dlqqq opened this issue · comments

See corresponding redux docs: https://redux-toolkit.js.org/api/configureStore

In the latest CRA template for redux-typescript, the root store is configured via configureStore instead of createStore. The installation instructions don't mention anything for this case.

With configureStore, enabling devtools is simple as appending the following line to the setup:

export const store = configureStore({
  ...
  devTools: true
  ...
})

We can save users a lot of future headache by adding this to the README.

Do you have any problems with devTools on Chrome? Even though I have set devtools in ConfigureStore to True, DevTools on chrome can not detect my redux state.

Yep, it simply does not work. Another completely broken tool to throw on the massive pile of completely broken frontend tools. These tools often work by themselves, but as soon as you combine them, it ends in tears.

export function createStore(config: ConfigState): Store<AppState> {
    return configureStore({
        reducer: createAppReducer(config),
        devTools: true,
    })
}

image