loginPage={false}
ends up calling logout
and checkAuth
in an infinite loop after logout
#8685
Labels
loginPage={false}
ends up calling logout
and checkAuth
in an infinite loop after logout
#8685
What you were expecting:
Being able to pass
loginPage={false}
to<Admin>
without breaking the App.What happened instead:
After I logout, I get redirected to
/login
, which ends up in an infinite loop callinglogout
andcheckAuth
because the route no longer exists.Steps to reproduce:
called logout!
andcalled checkAuth!
appear in loopRelated code:
https://stackblitz.com/edit/github-hwp9xd?file=src/index.tsx
Environment
The text was updated successfully, but these errors were encountered: