diff --git a/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/services/user/hooks.ts b/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/services/user/hooks.ts index d35dfe26..edbec28d 100644 --- a/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/services/user/hooks.ts +++ b/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/services/user/hooks.ts @@ -33,7 +33,7 @@ export const useLogout = () => { mutationFn: userApi.csc.logout, onSettled: () => { useAuth.getState().actions.clearAuth() - queryClient.removeQueries({ queryKey: userQueries.all() }) + queryClient.clear() }, }) } \ No newline at end of file diff --git a/{{cookiecutter.project_slug}}/clients/web/react/src/services/user/hooks.ts b/{{cookiecutter.project_slug}}/clients/web/react/src/services/user/hooks.ts index 23c372a0..43f4ff36 100644 --- a/{{cookiecutter.project_slug}}/clients/web/react/src/services/user/hooks.ts +++ b/{{cookiecutter.project_slug}}/clients/web/react/src/services/user/hooks.ts @@ -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() }, })