Replies: 1 comment
-
Loaders are run asynchronously and in parallel before any rendering of your elements occurs. Basically, RequireAuth is too late here. What you could be using is a loader on that top level element to check for auth and redirect. And your other loaders would need to check for auth before running as well. There is a proposal being worked on to make this much easier: #9564 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i have noticed that loaders are executed if a route is wrapped in a navigation guard
i have a navigation guard like this
i think loadUsers shouldn't be ran if the user isn't authenticated, Thanks and please correct me if i'm wrong
Beta Was this translation helpful? Give feedback.
All reactions