TanStackT
TanStack15mo ago
6 replies
sacred-rose

Invalidating router+query auth for logout

Hi, I'm trying to implement logout and I'm noticing some odd behaviour when invalidating the router. The
beforeLoad
handler for the root seems to have updated while
beforeLoad
for
/dashboard
has not

browser console logs after logout
__root beforeLoad userId:  null
dashboard beforeLoad userId:  123

seems like it's not being merged properly.

I've created a min repro here: https://github.com/alakhpc/tss-test
Was this page helpful?