Skip to content

Commit ceea7cf

Browse files
committed
Try working around TS 4.1 mismatch
1 parent 3965a58 commit ceea7cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/toolkit/src/query/core/buildThunks.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ export function buildThunks<
254254
return
255255
}
256256

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+
)
258261

259262
const providedTags = calculateProvidedBy(
260263
endpointDefinition.providesTags,

0 commit comments

Comments
 (0)