From 3149feb22f55be173a2acadfaf4d6be3205df9b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Ckirukib=E2=80=9D?= <“kirubeljkl679@gmail.com”> Date: Thu, 2 Apr 2026 11:16:27 +0300 Subject: [PATCH] fix preview not updating Made-with: Cursor --- src/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 5cc0958..aad7090 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -50,6 +50,9 @@ export default function App() { if (!template) return let cancelled = false + // Clear previous output immediately so the iframe can't appear "stuck". + setHtml('') + setText('') const handle = setTimeout(async () => { setLoading(true) setError(null) @@ -73,7 +76,7 @@ export default function App() { cancelled = true clearTimeout(handle) } - }, [brand, templateId, data]) + }, [brand, template, data]) const styles = { page: {