mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-09 15:52:26 +03:00
Fix
This commit is contained in:
parent
b19c0c1b66
commit
4a4b0365ab
|
@ -21,5 +21,8 @@ export const store: EnhancedStore<ReturnType<typeof reducer>> = configureStore({
|
|||
// adding the api middleware enables caching, invalidation, polling and other features of `rtk-query`
|
||||
middleware: (getDefaultMiddleware) =>
|
||||
getDefaultMiddleware().concat([pokemonApi.middleware, postsApi.middleware]),
|
||||
enhancers: (devTools ? [] : [DevTools.instrument()]) as any,
|
||||
enhancers: devTools
|
||||
? undefined
|
||||
: (getDefaultEnhancers) =>
|
||||
getDefaultEnhancers().concat(DevTools.instrument()),
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user