We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81f32d7 commit ec02f29Copy full SHA for ec02f29
packages/ra-core/src/auth/useLogout.ts
@@ -123,10 +123,10 @@ const useLogout = (): Logout => {
123
// a resolved promise with no delay: If the store was reset before the navigation,
124
// the `usePermissions` query would reset, causing the `CoreAdminRoutes` component to
125
// rerender the `LogoutOnMount` component leading to an infinite loop.
126
- window.requestAnimationFrame(() => {
+ setTimeout(() => {
127
resetStore();
128
queryClient.clear();
129
- });
+ }, 0);
130
131
return redirectToFromProvider;
132
});
0 commit comments