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 3645655 commit 92c529cCopy full SHA for 92c529c
packages/toolkit/src/query/createApi.ts
@@ -175,12 +175,8 @@ export interface CreateApiOptions<
175
*
176
* type RootState = any; // normally inferred from state
177
178
- * function isHydrateAction(action: Action): action is Action<typeof REHYDRATE> & {
179
- * key: string
180
- * payload: RootState
181
- * err: unknown
182
- * } {
183
- * return action.type === REHYDRATE
+ * function isHydrateAction(action: Action): action is PayloadAction<RootState> {
+ * return action.type === HYDRATE
184
* }
185
186
* export const api = createApi({
0 commit comments