Commit ec7f46b
committed
Add the suffix to cancelled view transition names (facebook#35485)
When a View Transition might not need to update we add it to a queue. If
the parent are able to be reverted, we then cancel the already started
view transitions. We do this by adding an animation that hides the "old"
state and remove the view transition name from the old state.
There was a bug where if you have more than one child in a
`<ViewTransition>` we didn't add the right suffix to the name we added
in the queue so it wasn't adding an animation that hides the old state.
The effect was that it playing an exit animation instead of being
cancelled.
DiffTrain build for [4a3d993](facebook@4a3d993)1 parent 977f18f commit ec7f46b
File tree
21 files changed
+384
-336
lines changed- compiled-rn
- facebook-fbsource/xplat/js
- RKJSModules/vendor/react
- react-dom/cjs
- react-test-renderer/cjs
- react/cjs
- react-native-github/Libraries/Renderer
- implementations
- tools/eslint-plugin-react-hooks
21 files changed
+384
-336
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 2 additions & 2 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 | | |
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
414 | 414 | | |
Lines changed: 2 additions & 2 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 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
Lines changed: 2 additions & 2 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 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
Lines changed: 132 additions & 124 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 14 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 | | |
| |||
12361 | 12361 | | |
12362 | 12362 | | |
12363 | 12363 | | |
12364 | | - | |
| 12364 | + | |
| 12365 | + | |
| 12366 | + | |
| 12367 | + | |
| 12368 | + | |
| 12369 | + | |
| 12370 | + | |
| 12371 | + | |
| 12372 | + | |
12365 | 12373 | | |
12366 | 12374 | | |
12367 | 12375 | | |
| |||
17693 | 17701 | | |
17694 | 17702 | | |
17695 | 17703 | | |
17696 | | - | |
| 17704 | + | |
17697 | 17705 | | |
17698 | 17706 | | |
17699 | 17707 | | |
17700 | 17708 | | |
17701 | 17709 | | |
17702 | 17710 | | |
17703 | | - | |
| 17711 | + | |
17704 | 17712 | | |
17705 | 17713 | | |
17706 | 17714 | | |
| |||
17720 | 17728 | | |
17721 | 17729 | | |
17722 | 17730 | | |
17723 | | - | |
| 17731 | + | |
17724 | 17732 | | |
17725 | | - | |
| 17733 | + | |
17726 | 17734 | | |
17727 | 17735 | | |
17728 | | - | |
| 17736 | + | |
17729 | 17737 | | |
17730 | 17738 | | |
17731 | | - | |
| 17739 | + | |
17732 | 17740 | | |
17733 | | - | |
17734 | | - | |
| 17741 | + | |
| 17742 | + | |
17735 | 17743 | | |
17736 | 17744 | | |
17737 | | - | |
17738 | | - | |
| 17745 | + | |
| 17746 | + | |
17739 | 17747 | | |
17740 | | - | |
| 17748 | + | |
17741 | 17749 | | |
17742 | 17750 | | |
17743 | 17751 | | |
| |||
17832 | 17840 | | |
17833 | 17841 | | |
17834 | 17842 | | |
17835 | | - | |
| 17843 | + | |
Lines changed: 20 additions & 12 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 | | |
| |||
14193 | 14193 | | |
14194 | 14194 | | |
14195 | 14195 | | |
14196 | | - | |
| 14196 | + | |
| 14197 | + | |
| 14198 | + | |
| 14199 | + | |
| 14200 | + | |
| 14201 | + | |
| 14202 | + | |
| 14203 | + | |
| 14204 | + | |
14197 | 14205 | | |
14198 | 14206 | | |
14199 | 14207 | | |
| |||
19819 | 19827 | | |
19820 | 19828 | | |
19821 | 19829 | | |
19822 | | - | |
| 19830 | + | |
19823 | 19831 | | |
19824 | 19832 | | |
19825 | 19833 | | |
19826 | 19834 | | |
19827 | 19835 | | |
19828 | 19836 | | |
19829 | | - | |
| 19837 | + | |
19830 | 19838 | | |
19831 | 19839 | | |
19832 | 19840 | | |
| |||
19848 | 19856 | | |
19849 | 19857 | | |
19850 | 19858 | | |
19851 | | - | |
| 19859 | + | |
19852 | 19860 | | |
19853 | 19861 | | |
19854 | | - | |
| 19862 | + | |
19855 | 19863 | | |
19856 | 19864 | | |
19857 | 19865 | | |
| |||
19869 | 19877 | | |
19870 | 19878 | | |
19871 | 19879 | | |
19872 | | - | |
| 19880 | + | |
19873 | 19881 | | |
19874 | | - | |
19875 | | - | |
| 19882 | + | |
| 19883 | + | |
19876 | 19884 | | |
19877 | 19885 | | |
19878 | | - | |
| 19886 | + | |
19879 | 19887 | | |
19880 | 19888 | | |
19881 | | - | |
| 19889 | + | |
19882 | 19890 | | |
19883 | 19891 | | |
19884 | 19892 | | |
| |||
19974 | 19982 | | |
19975 | 19983 | | |
19976 | 19984 | | |
19977 | | - | |
| 19985 | + | |
0 commit comments