Skip to content

Commit

Permalink
notifications tag invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardZaydler committed Nov 18, 2024
1 parent 70ac864 commit f99eb69
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/services/NotifierApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ export const NotifierApi = BaseApi.injectEndpoints({
credentials: "same-origin",
body: JSON.stringify(state),
}),
// invalidatesTags: (_result, error) => {
// if (error) {
// return [];
// }
// return ["Contacts"];
// },
invalidatesTags: (_result, error) => {
if (error) {
return [];
}
return ["Notifications"];
},
}),
}),
});
Expand Down

0 comments on commit f99eb69

Please sign in to comment.