Commit 3d6033a
committed
New children notify fragment instances in Fabric (#33093)
When a new child of a fragment instance is inserted, we need to notify
the instance to keep any relevant tracking up to date. For example, we
automatically observe the new child with any active
IntersectionObserver.
For mutable renderers (DOM), we reuse the existing traversal in
`commitPlacement` that does the insertions for HostComponents. Immutable
renderers (Fabric) exit this path before the traversal though, so
currently we can't notify the fragment instances.
Here I've created a separate traversal in `commitPlacement`,
specifically for immutable renders when `enableFragmentRefs` is on.
DiffTrain build for [1835b3f](1835b3f)1 parent 3992609 commit 3d6033a
File tree
34 files changed
+650
-556
lines changed- compiled/facebook-www
34 files changed
+650
-556
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1537 | 1537 | | |
1538 | 1538 | | |
1539 | 1539 | | |
1540 | | - | |
| 1540 | + | |
1541 | 1541 | | |
1542 | 1542 | | |
1543 | 1543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1537 | 1537 | | |
1538 | 1538 | | |
1539 | 1539 | | |
1540 | | - | |
| 1540 | + | |
1541 | 1541 | | |
1542 | 1542 | | |
1543 | 1543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
638 | | - | |
| 638 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
638 | | - | |
| 638 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19080 | 19080 | | |
19081 | 19081 | | |
19082 | 19082 | | |
19083 | | - | |
| 19083 | + | |
19084 | 19084 | | |
19085 | 19085 | | |
19086 | | - | |
| 19086 | + | |
19087 | 19087 | | |
19088 | 19088 | | |
19089 | 19089 | | |
| |||
19117 | 19117 | | |
19118 | 19118 | | |
19119 | 19119 | | |
19120 | | - | |
| 19120 | + | |
19121 | 19121 | | |
19122 | 19122 | | |
19123 | 19123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18852 | 18852 | | |
18853 | 18853 | | |
18854 | 18854 | | |
18855 | | - | |
| 18855 | + | |
18856 | 18856 | | |
18857 | 18857 | | |
18858 | | - | |
| 18858 | + | |
18859 | 18859 | | |
18860 | 18860 | | |
18861 | 18861 | | |
| |||
18889 | 18889 | | |
18890 | 18890 | | |
18891 | 18891 | | |
18892 | | - | |
| 18892 | + | |
18893 | 18893 | | |
18894 | 18894 | | |
18895 | 18895 | | |
| |||
0 commit comments