From 4394d3bd213bd5cb8f29f0ae2aa23de26516ba6d Mon Sep 17 00:00:00 2001 From: Silberengel Date: Thu, 26 Mar 2026 15:50:32 +0100 Subject: [PATCH] bug-fix --- package.json | 2 +- src/components/PostEditor/PostTextarea/index.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d0b17b78..1aa68ea3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jumble-imwald", - "version": "20.0.1", + "version": "20.0.2", "description": "A user-friendly Nostr client focused on relay feed browsing and relay discovery, forked from Jumble", "private": true, "type": "module", diff --git a/src/components/PostEditor/PostTextarea/index.tsx b/src/components/PostEditor/PostTextarea/index.tsx index 3eb35240..7b1cf771 100644 --- a/src/components/PostEditor/PostTextarea/index.tsx +++ b/src/components/PostEditor/PostTextarea/index.tsx @@ -109,6 +109,8 @@ const PostTextarea = forwardRef< } }, [activeTab, getDraftEventJson, kind]) const editor = useEditor({ + // TipTap + Radix Dialog/Tabs: defer init so React 18 does not warn about flushSync in a lifecycle. + immediatelyRender: false, extensions: [ Document, Paragraph, @@ -237,7 +239,8 @@ const PostTextarea = forwardRef< )} - + {/* Keep editor mounted: remounting EditorContent after Preview/Json triggers TipTap flushSync under React 18. */} +