mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2026-10-15 14:45:26 +00:00
feat(auth): invalidate workspaces query on successful logout
This commit is contained in:
@@ -24,6 +24,7 @@ export const useLogout = () => {
|
||||
toast.success("Logged out successfully");
|
||||
router.refresh();
|
||||
queryClient.invalidateQueries({ queryKey: ["current"] });
|
||||
queryClient.invalidateQueries({ queryKey: ["workspaces"] });
|
||||
},
|
||||
onError: () => {
|
||||
toast.error("Failed to logout");
|
||||
|
||||
Reference in New Issue
Block a user