- useSidebarNavigation: was not awaiting logout(), so navigate ran before store was updated; LoginPage then saw isAuthenticated=true and redirected back to dashboard - Both Sidebar and Header: use window.location.href instead of navigate() for logout redirect to ensure clean state (clears any stale React/Query cache, forces fresh load) |
||
|---|---|---|
| .. | ||
| web | ||