elite174
[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.
7 replies
createDeferred returns undefined under some conditions
Hey guys, do you know smth about this?
https://github.com/solidjs/solid/issues/1883
3 replies
[SPA Routing]: How to not call data function for the protected routes
Let's imagine we have the following app
;
I handle all auth in the layout data function:
When I enter
/content
page (unlogin state) the redirect hasn't worked yet, so contentPageDataFunction
still fetches the data. I want to not load extra data if I don't need it. How to properly cancel the request for the content page in this case?
Imagine we have the following contentPageDataFunction
function:
Is there some RIGHT way to do protect routing for SPA apps?11 replies