Skip to content

Commit 5c519f7

Browse files
authored
Fix syntax error in code snippet - 3rd try
1 parent 07deb80 commit 5c519f7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/rtk-query/usage/pagination.mdx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,13 @@ export const postApi = createApi({
9797
method: 'DELETE',
9898
}
9999
},
100-
// Invalidates queries that subscribe to this Post `id` as well as the `LIST`.
101-
invalidatesTags: (result, error, id) => [{ type: 'Posts', id },
102-
{ type: 'Posts', id: 'LIST'}],
103-
}),
100+
// Invalidates queries that subscribe to this Post `id` as well as the `LIST`.
101+
invalidatesTags: (result, error, id) => [
102+
{ type: "Posts", id },
103+
{ type: "Posts", id: "LIST" },
104+
],
105+
}),
106+
}),
104107
})
105108
```
106109
## General Pagination Example

0 commit comments

Comments
 (0)