File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
packages/toolkit/src/query/core Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,7 @@ export const { useGetPokemonByNameQuery } = pokemonApi
65
65
}
66
66
) =>
67
67
| undefined
68
- | CombinedState <
69
- NoInfer < Definitions > ,
70
- NoInfer < TagTypes > ,
71
- NoInfer < ReducerPath >
72
- >
68
+ | CombinedState < Definitions , TagTypes , ReducerPath >
73
69
tagTypes ?: readonly TagTypes [];
74
70
reducerPath ?: ReducerPath ;
75
71
serializeQueryArgs ?: SerializeQueryArgs < InternalQueryArgs > ;
Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ type Api = {
60
60
args : QueryArgFrom <Definitions [EndpointName ]>
61
61
) =>
62
62
| QueryActionCreatorResult <Definitions [EndpointName ]>
63
+ | undefined
64
+ getRunningOperationPromise: <EndpointName extends MutationKeys <Definitions >>(
65
+ endpointName : EndpointName ,
66
+ fixedCacheKeyOrRequestId : string
67
+ ) =>
63
68
| MutationActionCreatorResult <Definitions [EndpointName ]>
64
69
| undefined
65
70
}
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ declare module '../apiTypes' {
142
142
/**
143
143
* If a promise is running for a given endpoint name + argument combination,
144
144
* returns that promise. Otherwise, returns `undefined`.
145
- * Useful for SSR scenarios to await a specific query/mutation triggered in any way,
145
+ * Can be used to await a specific query/mutation triggered in any way,
146
146
* including via hook calls, or manually dispatching `initiate` actions.
147
147
*/
148
148
getRunningOperationPromise < EndpointName extends QueryKeys < Definitions > > (
You can’t perform that action at this time.
0 commit comments