Commit 52f3da8
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 commit b8e47d9.1 parent 56c48f7 commit 52f3da8
File tree
7 files changed
+17
-15
lines changed- compiled-rn/facebook-fbsource/xplat/js
- RKJSModules/vendor
- react-test-renderer/cjs
- react/cjs
- react-native-github/Libraries/Renderer
7 files changed
+17
-15
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
8054 | 8054 | | |
8055 | 8055 | | |
8056 | 8056 | | |
8057 | | - | |
| 8057 | + | |
8058 | 8058 | | |
8059 | 8059 | | |
8060 | 8060 | | |
| |||
24887 | 24887 | | |
24888 | 24888 | | |
24889 | 24889 | | |
24890 | | - | |
| 24890 | + | |
24891 | 24891 | | |
24892 | 24892 | | |
24893 | 24893 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
2694 | 2694 | | |
2695 | 2695 | | |
2696 | 2696 | | |
2697 | | - | |
| 2697 | + | |
| 2698 | + | |
2698 | 2699 | | |
2699 | 2700 | | |
2700 | 2701 | | |
| |||
9024 | 9025 | | |
9025 | 9026 | | |
9026 | 9027 | | |
9027 | | - | |
| 9028 | + | |
9028 | 9029 | | |
9029 | 9030 | | |
9030 | 9031 | | |
| |||
9055 | 9056 | | |
9056 | 9057 | | |
9057 | 9058 | | |
9058 | | - | |
| 9059 | + | |
9059 | 9060 | | |
9060 | 9061 | | |
9061 | 9062 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
2714 | 2714 | | |
2715 | 2715 | | |
2716 | 2716 | | |
2717 | | - | |
| 2717 | + | |
| 2718 | + | |
2718 | 2719 | | |
2719 | 2720 | | |
2720 | 2721 | | |
| |||
9450 | 9451 | | |
9451 | 9452 | | |
9452 | 9453 | | |
9453 | | - | |
| 9454 | + | |
9454 | 9455 | | |
9455 | 9456 | | |
9456 | 9457 | | |
| |||
9481 | 9482 | | |
9482 | 9483 | | |
9483 | 9484 | | |
9484 | | - | |
| 9485 | + | |
9485 | 9486 | | |
9486 | 9487 | | |
9487 | 9488 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments