Keep channel virtualizer API registered

Channel-keyed timeline mounts register the child virtualizer API before the
parent layout effect runs. Do not immediately erase that registration, or
deep-link navigation can never initialize its scroll owner.

Co-authored-by: Carl <c7ebe626f000404285d3686e1dc74cc07cc60a9754a150041ba132e14bd3e2ec@buzz.block.builderlab.xyz>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
This commit is contained in:
Wes
2026-08-14 15:01:40 -06:00
parent a85fa30e0a
commit 084dfb934c

View File

@@ -265,7 +265,10 @@ const MessageTimelineBase = React.forwardRef<
if (!useTimelineVirtualizer) {
setVirtualizerScrollParent(scrollContainerRef.current);
}
setTimelineVirtualizerApi(null);
// Do not clear the child-registered virtualizer API here. This parent
// layout effect runs after child layout effects on a keyed channel mount;
// clearing it would leave target navigation waiting forever for APIs that
// the still-mounted child will not register again.
}, [scrollContainerRef, scrollContainerDomKey]);
const hasPersistentIntro =