How do I get the error thrown by the setup method of an SFC? #1749
-
Say I have an SFC that checks if based on the data provided from its props it throws I tried to use Using I'd like to keep the logic with the SFC rather than implementing the logic on the router itself. |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Apr 21, 2023
Replies: 1 comment
-
there is |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there is
router.onError()
if the error happens within the navigation (e.g. a guard or fetching the component)