Skip to content

Commit

Permalink
feat(r/rn) clear queryclient on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
lakardion committed Nov 21, 2024
1 parent bc5412f commit 02f5775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const useLogout = () => {
mutationFn: userApi.csc.logout,
onSettled: () => {
useAuth.getState().actions.clearAuth()
queryClient.removeQueries({ queryKey: userQueries.all() })
queryClient.clear()
},
})
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const useLogout = () => {
mutationFn: userApi.csc.logout,
onSettled: () => {
useAuth.getState().actions.clearAuth()
queryClient.removeQueries({ queryKey: userQueries.all() })
queryClient.clear()
localStorage.clear()
},
})
Expand Down

0 comments on commit 02f5775

Please sign in to comment.