Commit dc5ed00
committed
Add
We need to be able to read whether an offscreen tree is hidden from
an imperative event. We can store this on its OffscreenInstance.
We were already scheduling a commit effect whenever the visibility
changes, in order to toggle the inner effects. So we can reuse that.isHidden to OffscreenInstance1 parent 7e8a020 commit dc5ed00
File tree
5 files changed
+31
-3
lines changed- packages/react-reconciler/src
5 files changed
+31
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
719 | 721 | | |
720 | 722 | | |
721 | 723 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
719 | 721 | | |
720 | 722 | | |
721 | 723 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2309 | 2309 | | |
2310 | 2310 | | |
2311 | 2311 | | |
| 2312 | + | |
2312 | 2313 | | |
2313 | 2314 | | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
2314 | 2320 | | |
2315 | 2321 | | |
2316 | 2322 | | |
| |||
2354 | 2360 | | |
2355 | 2361 | | |
2356 | 2362 | | |
| 2363 | + | |
2357 | 2364 | | |
2358 | 2365 | | |
2359 | 2366 | | |
2360 | 2367 | | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
2361 | 2372 | | |
2362 | 2373 | | |
2363 | 2374 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2309 | 2309 | | |
2310 | 2310 | | |
2311 | 2311 | | |
| 2312 | + | |
2312 | 2313 | | |
2313 | 2314 | | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
2314 | 2320 | | |
2315 | 2321 | | |
2316 | 2322 | | |
| |||
2354 | 2360 | | |
2355 | 2361 | | |
2356 | 2362 | | |
| 2363 | + | |
2357 | 2364 | | |
2358 | 2365 | | |
2359 | 2366 | | |
2360 | 2367 | | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
2361 | 2372 | | |
2362 | 2373 | | |
2363 | 2374 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments