Repository navigation
Commit 5cd61e6
committed
fix: re-register delegation and container claim after unowned hydration recovery
When onUncaughtError consumes an unowned hydrateRoot failure,
releaseFailedHydration correctly tears down the failed tree but also
unregisters event delegation and releases the container claim. The
returned root is the caller's live handle — subsequent .render() calls
need working delegated events and proper ownership tracking.
Re-register both after the release so the recovered root behaves like
createRoot's sync-failure recovery path, which keeps delegation and
claim intact.1 parent 781a667 commit 5cd61e6
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27499 | 27499 | | |
27500 | 27500 | | |
27501 | 27501 | | |
27502 | | - | |
| 27502 | + | |
| 27503 | + | |
27503 | 27504 | | |
27504 | 27505 | | |
27505 | 27506 | | |
| |||
27515 | 27516 | | |
27516 | 27517 | | |
27517 | 27518 | | |
27518 | | - | |
| 27519 | + | |
| 27520 | + | |
| 27521 | + | |
| 27522 | + | |
| 27523 | + | |
| 27524 | + | |
| 27525 | + | |
| 27526 | + | |
| 27527 | + | |
| 27528 | + | |
| 27529 | + | |
| 27530 | + | |
| 27531 | + | |
| 27532 | + | |
| 27533 | + | |
27519 | 27534 | | |
27520 | 27535 | | |
27521 | 27536 | | |
| |||
0 commit comments