Skip to content
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

Bugfix: useFormState queues actions in wrong order #27570

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Oct 23, 2023

I neglected to update the "last" pointer of the action queue. Since the queue is circular, rather than dropping the update, the effect was to add the update to the front of the queue instead of the back. I didn't notice earlier because in my demos/tests, the actions would either resolve really quickly or the actions weren't order dependent (like incrementing a counter).

I neglected to update the "last" pointer of the action queue. Since the
queue is circular, rather than dropping the update, the effect was to
add the update to the front of the queue instead of the back. I didn't
notice earlier because in my demos/tests, the actions would either
resolve really quickly or the actions weren't order dependent (like
incrementing a counter).
@acdlite acdlite requested a review from gnoff October 23, 2023 21:39
@facebook-github-bot facebook-github-bot added the React Core Team Opened by a member of the React Core Team label Oct 23, 2023
@react-sizebot
Copy link

Comparing: 779d593...1055b1e

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 175.03 kB 175.04 kB = 54.46 kB 54.46 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 177.16 kB 177.17 kB = 55.15 kB 55.15 kB
facebook-www/ReactDOM-prod.classic.js = 567.61 kB 567.61 kB = 99.94 kB 99.94 kB
facebook-www/ReactDOM-prod.modern.js = 551.47 kB 551.47 kB = 97.04 kB 97.04 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 1055b1e

@acdlite acdlite merged commit b8e47d9 into facebook:main Oct 23, 2023
2 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 23, 2023
I neglected to update the "last" pointer of the action queue. Since the
queue is circular, rather than dropping the update, the effect was to
add the update to the front of the queue instead of the back. I didn't
notice earlier because in my demos/tests, the actions would either
resolve really quickly or the actions weren't order dependent (like
incrementing a counter).

DiffTrain build for [b8e47d9](b8e47d9)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
I neglected to update the "last" pointer of the action queue. Since the
queue is circular, rather than dropping the update, the effect was to
add the update to the front of the queue instead of the back. I didn't
notice earlier because in my demos/tests, the actions would either
resolve really quickly or the actions weren't order dependent (like
incrementing a counter).
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
I neglected to update the "last" pointer of the action queue. Since the
queue is circular, rather than dropping the update, the effect was to
add the update to the front of the queue instead of the back. I didn't
notice earlier because in my demos/tests, the actions would either
resolve really quickly or the actions weren't order dependent (like
incrementing a counter).

DiffTrain build for commit b8e47d9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants