Commit ab33152
committed
Bugfix: useFormState queues actions in wrong order (#27570)
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)1 parent 83b9e01 commit ab33152
File tree
4 files changed
+6
-6
lines changed- compiled/facebook-www
4 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
| 590 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8330 | 8330 | | |
8331 | 8331 | | |
8332 | 8332 | | |
8333 | | - | |
| 8333 | + | |
8334 | 8334 | | |
8335 | 8335 | | |
8336 | 8336 | | |
| |||
25267 | 25267 | | |
25268 | 25268 | | |
25269 | 25269 | | |
25270 | | - | |
| 25270 | + | |
25271 | 25271 | | |
25272 | 25272 | | |
25273 | 25273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8330 | 8330 | | |
8331 | 8331 | | |
8332 | 8332 | | |
8333 | | - | |
| 8333 | + | |
8334 | 8334 | | |
8335 | 8335 | | |
8336 | 8336 | | |
| |||
25267 | 25267 | | |
25268 | 25268 | | |
25269 | 25269 | | |
25270 | | - | |
| 25270 | + | |
25271 | 25271 | | |
25272 | 25272 | | |
25273 | 25273 | | |
| |||
0 commit comments