From 2287c1244bd6339d6acb40371fcf679c04d570b0 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Fri, 7 Aug 2026 13:56:41 -0700 Subject: [PATCH] [eric] canvas: browser cards past the first actually load their page again --- frontend/src/app/pages/Dashboard/cards/BrowserCard.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/pages/Dashboard/cards/BrowserCard.tsx b/frontend/src/app/pages/Dashboard/cards/BrowserCard.tsx index fb63a3a5..e0f85185 100644 --- a/frontend/src/app/pages/Dashboard/cards/BrowserCard.tsx +++ b/frontend/src/app/pages/Dashboard/cards/BrowserCard.tsx @@ -688,7 +688,10 @@ const BrowserCard: React.FC = ({ return () => cleanups.forEach((fn) => fn()); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [tabIdKey, browserId, dispatch, updateTabLocal, suspendedSnap, throttleUrlMirror]); + // attachSlotReady is load-bearing: the elements do not exist until the attach queue + // releases this card, so without it this effect runs once against an empty map, registers no + // dom-ready listener, and every card after the first sits at about:blank forever. + }, [tabIdKey, browserId, dispatch, updateTabLocal, suspendedSnap, throttleUrlMirror, attachSlotReady]); const navigate = useCallback((targetUrl: string) => { const finalUrl = resolveInput(targetUrl);