Skip to content

Commit 92c529c

Browse files
authored
fix next-redux-wrapper example
1 parent 3645655 commit 92c529c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/toolkit/src/query/createApi.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,8 @@ export interface CreateApiOptions<
175175
*
176176
* type RootState = any; // normally inferred from state
177177
*
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
178+
* function isHydrateAction(action: Action): action is PayloadAction<RootState> {
179+
* return action.type === HYDRATE
184180
* }
185181
*
186182
* export const api = createApi({

0 commit comments

Comments
 (0)