-
I return from action following data:
But I don't get an error in component:
I'm a bit confused about it, what is the problem? How do I get error information to show error message? In network tab I can confirm only post request is made and response data of it includes an error I returned (in special format) |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Apr 29, 2024
Replies: 1 comment 3 replies
-
To submit the request to that action, are you using Form/useSubmit or fetcher.Form/fetcher.submit? |
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
If you're using a fetcher, then the result of the action will be accesible in
fetcher.data
, not using useActionData. This is the same with and without Single Fetch.