-
This is my action:
This is how I call it:
So when an error happens (in my case on db operation site) the onSuccess code is still getting invoked with the failure object: What's wrong ? I am using v7 with nextjs 14 EDIT:
|
Beta Was this translation helpful? Give feedback.
Answered by
TheEdoRan
Aug 27, 2024
Replies: 1 comment
-
You're catching the error inside the action, that's why |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
XamHans
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're catching the error inside the action, that's why
onSuccess
gets called.