Zahid Hasan
Zahid Hasan
> i got same issue, and stuck with this, any solution ? when i am use authenticated using local storage, there is no problem, but when using api, not navigate...
> can you please provide a minimal complete example by forking one of the router examples on stackblitz? https://stackblitz.com/edit/tanstack-router-4achrw?file=src%2Froutes%2F_auth.tsx Here a link to a fork, I've only made one change...
> I'm currently using the [flushSync](https://react.dev/reference/react-dom/flushSync) solution as a workaround following suggestion by SzelamC at [#1668 (reply in thread)](https://github.com/TanStack/router/discussions/1668#discussioncomment-9726727) So where should I use flushSync regarding this issue?