[BUG?] Router: `isRouting()` immediately returns `false` when transition is not completed
Hey guys, I noticed
isRouting
changes immediately from true
to false
if transition happens on the same page (for instance, when I change query params and createAsync looks at these params), so isRouting becomes false when there's no new data yet. Is it intended behavior? isRouting
works as expected (waits until the data comes) when the route is changing.
4 Replies
latest
won’t suspend while data is fetching is there is data from a previous fetch, so it won’t take part in the transitionyes, but it works when the page is changing
hmm ok, looks like I got this, thanks!
I assume when the page is changing there’s no data available yet, so latest does suspend
It’s just that after the initial fetch
latest
doesn’t re-suspendYes, you're right