throwErrors/useErrorBoundary for Vue #4926
-
Hello! First, thanks for this library, it's proven really useful during my transition from Vue2 to Vue3. I did run into one issue though. According to the documentation, it should be possible to provide a Unfortunately, I cannot get this to work. Is there something I'm missing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi 👋 I'm not a Vue user but it'd be helpful if you could provide a minimal runnable reproduction. It's hard to reason about why it might not be working/what you might be missing without seeing what you're trying to do 🙂 |
Beta Was this translation helpful? Give feedback.
-
@rogierpennink, can you describe how exactly your setup is? // Inside the setup script of my component, that is wrapped in a `NuxtErrorBoundary`
const mutation = useMutation(
() => {
throw new Error('oh no!')
},
{ useErrorBoundary: true }
)
mutation.mutate() |
Beta Was this translation helpful? Give feedback.
-
See this codesandbox |
Beta Was this translation helpful? Give feedback.
Hi 👋
I'm not a Vue user but it'd be helpful if you could provide a minimal runnable reproduction. It's hard to reason about why it might not be working/what you might be missing without seeing what you're trying to do 🙂