feat(sveltekit): Introduce client-side handleError wrapper#7406
feat(sveltekit): Introduce client-side handleError wrapper#7406AbhiPrasad merged 6 commits intodevelopfrom
handleError wrapper#7406Conversation
size-limit report 📦
|
Lms24
left a comment
There was a problem hiding this comment.
Nice, looks great! Let's just make sure that the conditional export paths are fine in the tarball, then this is good to 🚀
5e04be9 to
2a9e94b
Compare
|
Currently, This would allow us to filter out, transform and enrich errors in an idiomatic way. export const handleError = sequence(
filterUselessErrors,
addContextOrMetadata,
sentryHandleError,
myCustomHandleError);Would it make sense for you to suggest such a change to the SvelteKit team? I'm open to starting a discussion. I'm not quite sure about the consequences, but it feels like it should be a non-breaking change. |
|
@fjdumont thanks for the suggestion. We're definitely going to consider Feel free to go ahead and open a discussion on the SvelteKit repo 👍 |
ref #7402
Adds a wrapper for the client-side
handleErrorhook.Usage is like the following: