mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(frontend): clear React Query ondisconnect
This commit is contained in:
parent
d2c3ecf2f8
commit
20a7fd45a7
@ -71,6 +71,8 @@ export const useLogout = (
|
||||
async mutationFn() {
|
||||
socket?.disconnect();
|
||||
|
||||
queryClient.clear();
|
||||
|
||||
return await apiClient.logout();
|
||||
},
|
||||
onSuccess: async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user