I keep creating infinite loops when redirecting in beforeLoad
I think I have a fundamental misunderstanding of how the route loader work. In consequence, I already created multiple infinite redirect loops with tanstack router 
Here's an instance where this happens.
I navigate a user to the logout route:
The logout route redirects to
For some reason, the session is still active here (even though the cookie was removed). The `/hello route tries to get the session, does not see it and loops back to logout.
Now, I'd assume that a loop would be impossible since the session is removed. However, I see the url bar flickering. The flicker is so fast that I'm pretty sure nothing is waiting for async actions to resolve.
I've been banging my head against this for a while now but it does not seem to make sense. Can anyone spot the issue here (if it's there)?
Here's an instance where this happens.
I navigate a user to the logout route:
The logout route redirects to
/login but removed the session.For some reason, the session is still active here (even though the cookie was removed). The `/hello route tries to get the session, does not see it and loops back to logout.
Now, I'd assume that a loop would be impossible since the session is removed. However, I see the url bar flickering. The flicker is so fast that I'm pretty sure nothing is waiting for async actions to resolve.
I've been banging my head against this for a while now but it does not seem to make sense. Can anyone spot the issue here (if it's there)?