Replies: 1 comment
-
I think the header |
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 an error hook that checks if there's been an auth error in which case the user is redirected to the login page:
This works great except that links with the
data-sveltekit-preload-data
option will also trigger this hook. This is fine but it's a bit weird in terms of UX that a user hovers a link and ends up in a login page.Ideally I would like to know if the request was triggered by a preload so that this logic can be ignored... is there a way to accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions