Files
wursor/packages
SinachPatandClaude Sonnet 4.6 f707ecd7b3 fix: broaden captureExistingTree to find React root in Next.js App Router
Next.js 13+ App Router calls hydrateRoot on <html> or <body> directly
(not on a #__next div), so __reactFiber$ annotations land on
document.documentElement or document.body.

Changes:
- Add document.documentElement to the candidate list (covers App Router)
- Extract getFiber() helper to remove repeated key-scan loop
- Add DOM-wide fallback scan (querySelectorAll('*')) so any React app
  is found regardless of its root container convention
- Remove the early !tree bail-out — post FIBER_TREE_UPDATE even with a
  sparse tree, matching onCommitFiberRoot's behaviour

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 10:52:27 +01:00
..
2026-05-06 18:51:17 +01:00
2026-05-04 12:30:56 +01:00
2026-05-06 18:51:17 +01:00
2026-05-06 22:11:40 +01:00
2026-05-04 12:30:56 +01:00
2026-04-23 09:39:01 +01:00
2026-04-29 12:09:18 +01:00
2026-04-26 09:09:55 +01:00
2026-05-06 22:11:40 +01:00
2026-04-26 09:09:55 +01:00
2026-04-23 09:39:01 +01:00