You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
open example link-This is a demo example from the official website, only the settimeout time has been changed.(form action resolve promise after 10 seconds)
The button triggers the form action, and the pending useFormStatus is always true, even if the action is completed.
The expected behavior
The button triggers the form action. After the action is executed, useFormStatus should change from pending-true to pending-false.
Debug found that when the code is executed here-renderRootSync, throwValue has actually been resolved. If throwAndUnwindWorkLoop adds a then callback after resolved, it will not be triggered.
If you change the settimeout timer in the form action to a smaller value, such as 1000ms, then the code will go here renderRootConcurrent, and replaySuspendedUnitOfWork can start to re-render.