Where logging unexpected client errors (hooks.client.ts) #9177
Unanswered
pepa-linha
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would need to know where to properly send data - such as the logged in user ID - to Sentry.
The documentation shows this example (below).
But I don't know how I can access the page data ($page.data) or how to pass the data from locals where I have a user ID for example.
But this only works if the error occurs during navigation. If I load the same page directly (or refresh page for example),
pageData
will be empty.Beta Was this translation helpful? Give feedback.
All reactions