Server action redirects should allow returning state #69193
Unanswered
icopp
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, if you
redirectfrom inside a server action, there's no way to return any kind of updated state to the call site. If you useuseActionState, this means you can't do any kind of side channel behavior (success notifications, etc) in combination with a redirect unless you work out your own hacky arrangement to check stale state and figure out your own de facto standard for what it means.Beta Was this translation helpful? Give feedback.
All reactions