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
When multiple client side actions are scheduled via useActionState, the "Action queue" promises are processed sequentially as expected. However after the last action promise resolves, the component is not re-rendered. This means, the component is stuck in "loading" without access to "data".
After 10 seconds (each request is 5 seconds and processed sequentially), the component still shows "Loading..." and not the dummy data (as I would expect).
Notes
When only one "action" is scheduled (button clicked once), the component re-renders when the action is done, as expected.
The promise "delay" seems to have an effect. When REQUEST_DELAY is set lower i.e. 1000ms, this "issue" is not present.
it required an edit of ReactHooks.js #31001
The demo is used a simplified standalone version of ReactHooks.js that you can work in CodeSandbox without relying on internal React modules :D
Summary
When multiple client side actions are scheduled via
useActionState
, the "Action queue" promises are processed sequentially as expected. However after the last action promise resolves, the component is not re-rendered. This means, the component is stuck in "loading" without access to "data".Steps to reproduce
Notes
REQUEST_DELAY
is set lower i.e. 1000ms, this "issue" is not present.Is this behavior intentional?
The text was updated successfully, but these errors were encountered: