[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
Imagine we have the following
Is there some RIGHT way to do protect routing for SPA apps?
;
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?
