-
-
Notifications
You must be signed in to change notification settings - Fork 41
[BUG] next/navigation
functions trigger success status and callbacks
#325
New issue
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
Comments
Same thing if the device looses network connection. Seems very weird |
This is the correct behavior for all |
Yes, right. Didn't think about, that redirect throws too.
That sounds sensible to me. I would love to see it in the v8. Thank you for this great library 👍 |
Hey! Here's an update on this issue. v8.0.0-beta.3 has been released, and it introduces a new callback for both actions and hooks, called Additionally, a new hook status, called I'll be updating the beta documentation soon, but feel free to test these changes already if you'd like. If you do, I'd love to hear your thoughts on the implementation. Personally, I think it's much clearer now, as navigation functions have their own specific callback and status. |
next/navigation
functions trigger success status and callbacks
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: