File tree 1 file changed +8
-2
lines changed
packages/toolkit/src/query/core
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,10 @@ export function buildThunks<
254
254
return
255
255
}
256
256
257
- const newValue = api . endpoints [ endpointName ] . select ( args ) ( getState ( ) )
257
+ const newValue = api . endpoints [ endpointName ] . select ( args ) (
258
+ // Work around TS 4.1 mismatch
259
+ getState ( ) as RootState < any , any , any >
260
+ )
258
261
259
262
const providedTags = calculateProvidedBy (
260
263
endpointDefinition . providesTags ,
@@ -275,7 +278,10 @@ export function buildThunks<
275
278
( dispatch , getState ) => {
276
279
const endpointDefinition = api . endpoints [ endpointName ]
277
280
278
- const currentState = endpointDefinition . select ( args ) ( getState ( ) )
281
+ const currentState = endpointDefinition . select ( args ) (
282
+ // Work around TS 4.1 mismatch
283
+ getState ( ) as RootState < any , any , any >
284
+ )
279
285
280
286
let ret : PatchCollection = {
281
287
patches : [ ] ,
You can’t perform that action at this time.
0 commit comments