From 6a72711aa0389707677d8d501d1903727200f195 Mon Sep 17 00:00:00 2001 From: Chad Curtis Date: Thu, 25 Sep 2025 03:13:04 +0000 Subject: [PATCH] Fix force re-render on url change in preview pane. --- src/components/Shakespeare/PreviewPane.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Shakespeare/PreviewPane.tsx b/src/components/Shakespeare/PreviewPane.tsx index 0cab8213..7e4dc419 100644 --- a/src/components/Shakespeare/PreviewPane.tsx +++ b/src/components/Shakespeare/PreviewPane.tsx @@ -174,11 +174,11 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o // Use a small timeout to ensure the src is cleared before setting it back setTimeout(() => { if (iframeRef.current) { - iframeRef.current.src = `https://${projectId}.${IFRAME_DOMAIN}${currentPath}`; + iframeRef.current.src = `https://${projectId}.${IFRAME_DOMAIN}/`; } }, 10); } - }, [currentPath, projectId]); + }, [projectId]); const sendResponse = useCallback((message: JSONRPCResponse) => { if (iframeRef.current?.contentWindow) { @@ -674,7 +674,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o {hasBuiltProject ? (