From 9065ddccbd9b84c2309820dce7ba2139b98d8748 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 19 Sep 2026 17:42:45 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20revert=20load=20effect=20to=20working=20?= =?UTF-8?q?form;=20move=20Plugin-loaded=20log=20to=20a=20separate=20safe?= =?UTF-8?q?=20effect=20so=20it=20cannot=20block=20setLoaded=20(was=20causi?= =?UTF-8?q?ng=20stuck=20'Loading=E2=80=A6')?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui.tsx b/src/ui.tsx index f19def1..b7f3b8c 100644 --- a/src/ui.tsx +++ b/src/ui.tsx @@ -259,12 +259,12 @@ function Plugin () { setTimeout(function () { setCopied(false) }, 1500) } useEffect(function () { - logEvent('Plugin loaded · figma.version=' + (figma as any).version) loadSettings() .then(function (s) { setSettings(s) }) .catch(function () {}) .finally(function () { setLoaded(true) }) }, []) + useEffect(function () { try { logEvent('Plugin loaded') } catch (e) {} }, []) const resizeRef = useRef({ active: false, dir: '', startX: 0, startY: 0, startW: 0, startH: 0, fixedAxis: 'none' as 'none' | 'x' | 'y' }) // Current dock position (for "window is edge-docked" detection in UI). Center and // corners are NOT written here — they are not considered docked (window just lies there).