Commit e41609d
committed
[DevTools] Always attempt to mount dehydrated roots
`mountFiberRecursively` bails out of hydrating dehydrated roots nowadays.
This makes the check in `handleCommitFiberRoot` redundant.
Mostly doing this because the check in `handleCommitFiberRoot`
wasn't mirrored in the initial mount path.
`handleCommitFiberRoot` always attempted to mount dehydrated
roots when it first encountered a HostRoot.
But on updates, it treated a previously dehydrated HostRoot
as newly mounted.
This resulted in recording mounts twice which is not supported.1 parent 2cb8edb commit e41609d
File tree
2 files changed
+4
-9
lines changed2 files changed
+4
-9
lines changedLines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5278 | 5278 | | |
5279 | 5279 | | |
5280 | 5280 | | |
5281 | | - | |
5282 | | - | |
5283 | | - | |
| 5281 | + | |
5284 | 5282 | | |
5285 | | - | |
5286 | | - | |
5287 | | - | |
5288 | | - | |
| 5283 | + | |
5289 | 5284 | | |
5290 | 5285 | | |
5291 | 5286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
343 | 342 | | |
344 | 343 | | |
345 | 344 | | |
346 | 345 | | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
0 commit comments