We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3965a58 commit 0bf5804Copy full SHA for 0bf5804
packages/toolkit/src/query/core/buildThunks.ts
@@ -254,7 +254,10 @@ export function buildThunks<
254
return
255
}
256
257
- const newValue = api.endpoints[endpointName].select(args)(getState())
+ const newValue = api.endpoints[endpointName].select(args)(
258
+ // Work around TS 4.1 mismatch
259
+ getState() as RootState<any, any, any>
260
+ )
261
262
const providedTags = calculateProvidedBy(
263
endpointDefinition.providesTags,
0 commit comments