Hide Names: fallback text-node wrapping desyncs React preview updates
Facebook Messenger on your desktop, without the Facebook clutter
Brought to you by:
kristoffer-r
Originally created by: kristofferR
The fallback wrap path in hide-names.ts (wrapTextRange) replaces a React-owned text node with three new nodes. React updates text-only children by assigning nodeValue on its retained (now detached) node, so subsequent preview updates for that row go nowhere and the visible preview stays stale until React remounts the row — and the ≤150ms rescan keeps the original node from ever coming back. Marking the nearest element (accepting slightly wider blur) avoids mutating React-owned text.
Originally posted by: kristofferR
Fixed in [#137] as part of the privacy-feature regression fixes: the Hide Names fallback text-node wrapping no longer desyncs React preview updates.
Related
Tickets:
#137Ticket changed by: kristofferR