Skip to content

Commit 44d4805

Browse files
committed
Fix docs TS issue
1 parent e87cc97 commit 44d4805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rtk-query/usage/persistence-and-rehydration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const api = createApi({
5252
// highlight-start
5353
extractRehydrationInfo(action, { reducerPath }) {
5454
if (isHydrateAction(action)) {
55-
if (action.key === 'key used with redux-persist') {
55+
if ((action as any).key === 'key used with redux-persist') {
5656
// when persisting the api reducer
5757
return action.payload
5858
}

0 commit comments

Comments
 (0)