Skip to content

Commit 7980b6c

Browse files
committed
📝 Fix manual cache update examples
Remove excessive tag invalidation in examples which would otherwise interfere with the manual cache update
1 parent 57316ca commit 7980b6c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/rtk-query/usage/manual-cache-updates.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ const api = createApi({
9595
method: 'PATCH',
9696
body: patch,
9797
}),
98-
invalidatesTags: ['Post'],
9998
// highlight-start
10099
async onQueryStarted({ id, ...patch }, { dispatch, queryFulfilled }) {
101100
const patchResult = dispatch(
@@ -187,7 +186,6 @@ const api = createApi({
187186
method: 'PATCH',
188187
body: patch,
189188
}),
190-
invalidatesTags: ['Post'],
191189
// highlight-start
192190
async onQueryStarted({ id, ...patch }, { dispatch, queryFulfilled }) {
193191
try {

0 commit comments

Comments
 (0)