Skip to content

Commit

Permalink
Try working around TS 4.1 mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Sep 24, 2023
1 parent 3965a58 commit 0bf5804
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/toolkit/src/query/core/buildThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ export function buildThunks<
return
}

const newValue = api.endpoints[endpointName].select(args)(getState())
const newValue = api.endpoints[endpointName].select(args)(
// Work around TS 4.1 mismatch
getState() as RootState<any, any, any>
)

const providedTags = calculateProvidedBy(
endpointDefinition.providesTags,
Expand Down

0 comments on commit 0bf5804

Please sign in to comment.