mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Fix rtk-query-monitor tests
This commit is contained in:
parent
e59e1e4a3b
commit
5d0a50ba3c
|
@ -3,6 +3,7 @@ import {
|
||||||
configureStore,
|
configureStore,
|
||||||
EnhancedStore,
|
EnhancedStore,
|
||||||
Middleware,
|
Middleware,
|
||||||
|
Tuple,
|
||||||
} from '@reduxjs/toolkit';
|
} from '@reduxjs/toolkit';
|
||||||
import { createApi } from '@reduxjs/toolkit/query/react';
|
import { createApi } from '@reduxjs/toolkit/query/react';
|
||||||
import type { BaseQueryFn, FetchArgs } from '@reduxjs/toolkit/query';
|
import type { BaseQueryFn, FetchArgs } from '@reduxjs/toolkit/query';
|
||||||
|
@ -70,8 +71,9 @@ export function setupStore(
|
||||||
devTools: false,
|
devTools: false,
|
||||||
// adding the api middleware enables caching, invalidation, polling and other features of `rtk-query`
|
// adding the api middleware enables caching, invalidation, polling and other features of `rtk-query`
|
||||||
middleware: (getDefaultMiddleware) =>
|
middleware: (getDefaultMiddleware) =>
|
||||||
getDefaultMiddleware().concat([pokemonApi.middleware]) as Middleware[],
|
getDefaultMiddleware().concat(pokemonApi.middleware),
|
||||||
enhancers: [devTools.instrument()],
|
enhancers: (getDefaultEnhancers) =>
|
||||||
|
getDefaultEnhancers().concat(devTools.instrument()),
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user