-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Server action mutation doesn't flush updates until the action finishes #2653
Comments
Thanks for your repro ! |
Thanks for the quick turnaround @promer94 -- would love to see a new beta release :) |
We have a plan to release a new version in this week. You could use codesandbox ci build in case you need it now 😁 |
Amazing, thank you! |
Reopen this issue as reverted in #2681 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Description / Observed Behavior
(see repro below)
I'm experimenting with using (abusing? 🤔) a server action as a mutation fetcher, and I found that a server action mutation doesn't flush updates until the action finishes.
My hypothesis is it probably has something to do with both
swr
and React marking the update as a transition, therefore starving the update, but I haven't got to the bottom of it yet; wanted to open an issue early to see if y'all have any feedback/thoughts.Expected Behavior
The mutation should flush an
isMutating
update immediatelyRepro Steps / Code Example
https://codesandbox.io/p/sandbox/determined-dubinsky-wgf568?file=%2Fsrc%2Fapp%2Fpage.tsx%3A17%2C19
isMutating
immediately as expectedAdditional Context
Tested on latest canary versions:
2.2.0-beta.0
13.4.5-canary.4
The text was updated successfully, but these errors were encountered: