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. */} +