Skip to content

Commit

Permalink
Merge pull request #1572 from Shrugsy/docs/fix-manual-cache-update-ex…
Browse files Browse the repository at this point in the history
…amples
  • Loading branch information
markerikson committed Oct 5, 2021
2 parents 57316ca + 7980b6c commit 2854419
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/rtk-query/usage/manual-cache-updates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ const api = createApi({
method: 'PATCH',
body: patch,
}),
invalidatesTags: ['Post'],
// highlight-start
async onQueryStarted({ id, ...patch }, { dispatch, queryFulfilled }) {
const patchResult = dispatch(
Expand Down Expand Up @@ -187,7 +186,6 @@ const api = createApi({
method: 'PATCH',
body: patch,
}),
invalidatesTags: ['Post'],
// highlight-start
async onQueryStarted({ id, ...patch }, { dispatch, queryFulfilled }) {
try {
Expand Down

0 comments on commit 2854419

Please sign in to comment.