We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code logs Success. to the browsers console.
Success.
// action.ts export const userAction = userActionClient.action(async () => { notFound() }) // Component.tsx // ... const { execute } = useAction(updateAssignmentSettingsAction, { onSuccess: () => console.log('Success.'), onError: () => console.log('Error'), })
Call notFound() in a server action.
notFound()
I expected the onError callback to fire.
onError
none
macOs
7.10.4
15.1.5
22
No response
The text was updated successfully, but these errors were encountered:
Same thing if the device looses network connection. Seems very weird
Sorry, something went wrong.
No branches or pull requests
Are you using the latest version of this library?
Is there an existing issue for this?
Describe the bug
The following code logs
Success.
to the browsers console.Reproduction steps
Call
notFound()
in a server action.Expected behavior
I expected the
onError
callback to fire.Link to a minimal reproduction of the issue
none
Operating System
macOs
Library version
7.10.4
Next.js version
15.1.5
Node.js version
22
Additional context
No response
The text was updated successfully, but these errors were encountered: