-
here i want to catch error in my on:submit data block, but it cause a error.
but it got an error
but the example is used for |
Beta Was this translation helpful? Give feedback.
Answered by
gbj
Jul 2, 2024
Replies: 1 comment 3 replies
-
That is not how error boundaries or event handlers work in Leptos. ErrorBoundary catches Results rendered in the view inside it. Event listeners can't return values. Here are some examples. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can have an
error
signal that you set if there is an error and read from somewhere in the view to trigger the ErrorBoundary.