Is auth check on beforeLoad
a good idea?
#3339
Unanswered
michaltaberski
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By following documentation we can learn the user auth check should happen on
beforeLoad
function.Something like this:
However seems like this approach is checking the auth state a way too many times.
If I use
<Link />
(wherepreload
has default valuetrue
) I am ending up with following effect:https://share.cleanshot.com/3tkTWQfM
Whats your approach to avoid that effect?
Beta Was this translation helpful? Give feedback.
All reactions