Repository navigation
fix: editor performance improvements - #1648
Conversation
- change shouldRerenderOnTransaction to false
|
Caution Review failedThe pull request is closed. WalkthroughIntroduces useEditorState selectors across many editor UI components to derive active flags and attributes, replaces direct editor.isActive/attribute reads, adds null guards and Editor | null prop types in several components, fixes pluginKey typos, adds a default export for DrawioMenu, and sets shouldRerenderOnTransaction to false in PageEditor. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant UI as Menu/Selector Component
participant S as useEditorState
participant E as Editor
participant Doc as Document
User->>UI: open menu / change selection
UI->>S: read derived state (e.g., isBold, width, href)
S->>E: query active marks/nodes/attributes
E-->>S: snapshot flags/attrs
S-->>UI: editorState (flags/attrs)
UI-->>User: render active states
User->>UI: trigger action (e.g., Bold, Align, Update href)
UI->>E: editor.commands.<action>(...)
E->>Doc: apply transaction
Doc-->>E: updated document state
E-->>S: new state available
S-->>UI: updated editorState
UI-->>User: UI reflects updated state
sequenceDiagram
autonumber
participant PageEditor
participant S as useEditorState
participant E as Editor
PageEditor->>S: derive editorIsEditable
S->>E: read isEditable
E-->>S: true/false
S-->>PageEditor: editorIsEditable
alt editorIsEditable == true
PageEditor->>PageEditor: render toolbars/menus
else
PageEditor->>PageEditor: hide toolbars/menus
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🧪 Early access (Sonnet 4.5): enabledWe are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
Comment |
There was a problem hiding this comment.
Actionable comments posted: 9
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
apps/client/src/features/editor/components/excalidraw/excalidraw-menu.tsx (1)
68-68: Fix pluginKey typo - closing brace instead of opening brace.The
pluginKeyhas a typo:excalidraw-menu}contains a closing brace}instead of an opening brace{. This should be{excalidraw-menu}for a template literal or simply"excalidraw-menu"for a plain string.Apply this diff to fix:
- pluginKey={`excalidraw-menu}`} + pluginKey={`excalidraw-menu`}apps/client/src/features/editor/components/link/link-menu.tsx (1)
62-62: Fix the pluginKey typo.The
pluginKeyhas a typo with an extra closing brace:link-menu}should belink-menu.Apply this diff:
- pluginKey={`link-menu}`} + pluginKey="link-menu"
🧹 Nitpick comments (8)
apps/client/src/features/editor/components/table/table-background-color.tsx (1)
42-64: Consider removing unused properties from selector.The
isTableCellandisTableHeaderproperties (lines 60-61) are computed but never used in the component. Since the selector runs on every editor transaction, removing unused computations would be a minor optimization.Apply this diff to simplify the selector:
const editorState = useEditorState({ editor, selector: (ctx) => { if (!ctx.editor) { return null; } let currentColor = ""; if (ctx.editor.isActive("tableCell")) { const attrs = ctx.editor.getAttributes("tableCell"); currentColor = attrs.backgroundColor || ""; } else if (ctx.editor.isActive("tableHeader")) { const attrs = ctx.editor.getAttributes("tableHeader"); currentColor = attrs.backgroundColor || ""; } return { currentColor, - isTableCell: ctx.editor.isActive("tableCell"), - isTableHeader: ctx.editor.isActive("tableHeader"), }; }, });apps/client/src/features/editor/components/excalidraw/excalidraw-menu.tsx (1)
16-28: Consider usingeditorStateinshouldShowfor consistency.The
shouldShowcallback still useseditor.isActive("excalidraw")directly, whileeditorState.isExcalidraw(computed on line 39) is derived but never used. If the goal is to optimize re-renders viauseEditorState, consider leveraging the computed state here as well, or remove the unusedisExcalidrawproperty from the selector.apps/client/src/features/editor/components/callout/callout-menu.tsx (1)
39-54: Well-structured derived state pattern for performance optimization.The
useEditorStateselector computes all active states in a single reactive computation, reducing re-renders compared to multiple directeditor.isActivechecks during render.Minor observation:
isCalloutis computed but never consumed. Consider removing it if unused, though the performance impact is negligible.apps/client/src/features/editor/components/drawio/drawio-menu.tsx (1)
17-26: Consider usingeditorState.isDrawiofor consistency.The
shouldShowcallback still directly callseditor.isActive("drawio"), whileeditorState.isDrawiois computed but unused. For consistency and to maximize the performance benefits ofuseEditorState, consider using the derived state instead:const shouldShow = useCallback( ({ state }: ShouldShowProps) => { if (!state) { return false; } - return editor.isActive("drawio") && editor.getAttributes("drawio")?.src; + return editorState?.isDrawio && editor.getAttributes("drawio")?.src; }, - [editor], + [editorState, editor], );This would reduce redundant
isActivechecks and better align with the performance optimization approach.apps/client/src/features/editor/components/link/link-menu.tsx (1)
11-13: Consider deriving shouldShow from editorState for consistency.The
shouldShowcallback useseditor.isActive("link")directly, which may trigger re-renders on every transaction. For consistency with the performance improvements in this PR, consider deriving the active state fromuseEditorState.You could extend the selector to include the active state:
const editorState = useEditorState({ editor, selector: (ctx) => { if (!ctx.editor) { return { href: '', isActive: false }; } const link = ctx.editor.getAttributes("link"); return { href: link.href, + isActive: ctx.editor.isActive("link"), }; }, }); const shouldShow = useCallback(() => { - return editor.isActive("link"); + return editorState.isActive; - }, [editor]); + }, [editorState.isActive]);apps/client/src/features/editor/components/bubble-menu/color-selector.tsx (1)
113-130: Consider memoization to prevent unnecessary re-renders.While
useEditorStateis the correct approach for deriving reactive state, the current selector creates a new object on every transaction, which may trigger re-renders even when active colors haven't changed. Additionally, checking all 18 color combinations (9 text + 9 highlight) on every transaction could impact performance in large documents.Consider these optimizations:
- Return a stable reference when colors haven't changed (use a comparison):
const editorState = useEditorState({ editor, selector: ctx => { if (!ctx.editor) { return null; } const activeColors: Record<string, boolean> = {}; TEXT_COLORS.forEach(({ color }) => { activeColors[`text_${color}`] = ctx.editor.isActive("textStyle", { color }); }); HIGHLIGHT_COLORS.forEach(({ color }) => { activeColors[`highlight_${color}`] = ctx.editor.isActive("highlight", { color }); }); return activeColors; }, + equalityFn: (prev, next) => { + if (!prev || !next) return prev === next; + return Object.keys(prev).every(key => prev[key] === next[key]); + }, });
- Alternatively, if you're experiencing performance issues, consider only checking the currently active colors rather than all 18 combinations, or use a more targeted selector that only subscribes to the specific attributes being modified.
apps/client/src/features/editor/components/image/image-menu.tsx (1)
36-53: Excellent performance optimization with reactive state selector.The
useEditorStatehook with a selector function prevents unnecessary re-renders by deriving only the required UI state. The null guard forctx.editoris appropriate, and the alignment/width derivations are correct.Optional: Consider using explicit radix for
parseInt:- width: imageAttrs?.width ? parseInt(imageAttrs.width) : null, + width: imageAttrs?.width ? parseInt(imageAttrs.width, 10) : null,This makes the base-10 parsing explicit and avoids potential edge cases with leading zeros (though unlikely with Tiptap attributes).
apps/client/src/features/editor/components/video/video-menu.tsx (1)
36-53: Use explicit radix when parsing video widthChange
parseInt(videoAttrs.width)toparseInt(videoAttrs.width, 10)on line 50. The width attribute is always formatted as a percent string (e.g."50%"), so this is a no-op but makes the radix explicit:- width: videoAttrs?.width ? parseInt(videoAttrs.width) : null, + width: videoAttrs?.width ? parseInt(videoAttrs.width, 10) : null,
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (13)
apps/client/src/features/editor/components/bubble-menu/bubble-menu.tsx(2 hunks)apps/client/src/features/editor/components/bubble-menu/color-selector.tsx(4 hunks)apps/client/src/features/editor/components/bubble-menu/node-selector.tsx(3 hunks)apps/client/src/features/editor/components/bubble-menu/text-alignment-selector.tsx(3 hunks)apps/client/src/features/editor/components/callout/callout-menu.tsx(7 hunks)apps/client/src/features/editor/components/drawio/drawio-menu.tsx(3 hunks)apps/client/src/features/editor/components/excalidraw/excalidraw-menu.tsx(4 hunks)apps/client/src/features/editor/components/image/image-menu.tsx(6 hunks)apps/client/src/features/editor/components/link/link-menu.tsx(3 hunks)apps/client/src/features/editor/components/table/table-background-color.tsx(4 hunks)apps/client/src/features/editor/components/table/table-text-alignment.tsx(5 hunks)apps/client/src/features/editor/components/video/video-menu.tsx(6 hunks)apps/client/src/features/editor/page-editor.tsx(7 hunks)
🧰 Additional context used
🧬 Code graph analysis (9)
apps/client/src/features/editor/components/link/link-menu.tsx (2)
apps/client/src/features/editor/components/link/link-editor-panel.tsx (1)
LinkEditorPanel(8-36)apps/client/src/features/editor/components/link/link-preview.tsx (1)
LinkPreviewPanel(19-60)
apps/client/src/features/editor/components/bubble-menu/text-alignment-selector.tsx (2)
apps/client/src/features/editor/components/bubble-menu/bubble-menu.tsx (1)
BubbleMenuItem(33-38)apps/client/src/features/editor/components/bubble-menu/node-selector.tsx (1)
BubbleMenuItem(26-31)
apps/client/src/features/editor/components/drawio/drawio-menu.tsx (1)
apps/client/src/features/editor/components/common/node-width-resize.tsx (1)
NodeWidthResize(10-35)
apps/client/src/features/editor/components/video/video-menu.tsx (1)
apps/client/src/features/editor/components/common/node-width-resize.tsx (1)
NodeWidthResize(10-35)
apps/client/src/features/editor/components/image/image-menu.tsx (1)
apps/client/src/features/editor/components/common/node-width-resize.tsx (1)
NodeWidthResize(10-35)
apps/client/src/features/editor/components/excalidraw/excalidraw-menu.tsx (1)
apps/client/src/features/editor/components/common/node-width-resize.tsx (1)
NodeWidthResize(10-35)
apps/client/src/features/editor/components/bubble-menu/bubble-menu.tsx (2)
apps/client/src/features/editor/components/bubble-menu/node-selector.tsx (1)
BubbleMenuItem(26-31)apps/client/src/features/editor/components/bubble-menu/text-alignment-selector.tsx (1)
BubbleMenuItem(21-26)
apps/client/src/features/editor/components/bubble-menu/node-selector.tsx (2)
apps/client/src/features/editor/components/bubble-menu/bubble-menu.tsx (1)
BubbleMenuItem(33-38)apps/client/src/features/editor/components/bubble-menu/text-alignment-selector.tsx (1)
BubbleMenuItem(21-26)
apps/client/src/features/editor/page-editor.tsx (1)
apps/client/src/features/editor/atoms/editor-atoms.ts (1)
yjsConnectionStatusAtom(10-10)
🔇 Additional comments (46)
apps/client/src/features/editor/components/table/table-background-color.tsx (5)
12-13: LGTM: Type-only import and useEditorState hook addition.The type-only import of
Editoris good practice for TypeScript optimization, anduseEditorStateis correctly imported to enable reactive editor state derivation.
22-22: LGTM: More explicit editor type.Changing to
Editor | nullis clearer and more explicit thanReturnType<typeof useEditor>, and properly represents the nullable state of the editor prop.
66-68: LGTM: Proper null guards.The null guards for both
editorandeditorStateprevent rendering when the editor is unavailable, which is the correct defensive pattern.
70-84: LGTM: Color setter logic is correct.The function properly updates both
tableCellandtableHeaderattributes with the selected color and name, and correctly usesnullto clear attributes when color is empty.
140-140: LGTM: Reactive color state usage.Using
editorState.currentColorenables automatic re-rendering when the selection changes, which is the key improvement of this refactor.apps/client/src/features/editor/components/table/table-text-alignment.tsx (6)
15-16: LGTM! Correct imports for the performance optimization.The Editor type and useEditorState hook imports are appropriate for deriving reactive alignment states.
20-20: LGTM! Cleaner type definition.Using
Editor | nulldirectly is clearer thanReturnType<typeof useEditor>and properly expresses the nullable editor prop.
35-48: Excellent performance optimization usinguseEditorState.The selector pattern properly memoizes alignment state and will only trigger re-renders when alignment actually changes, avoiding unnecessary updates on every editor transaction.
50-52: LGTM! Proper null safety guard.The early return correctly handles both null editor and null editorState cases before accessing them below.
58-58: LGTM! Correctly uses derived state.The
isActivemethods now reference the memoizededitorStateflags instead of callingeditor.isActive()repeatedly, which improves performance.Also applies to: 65-65, 72-72
109-109: LGTM! Correct conditional rendering.The
rightSectionproperly usesitem.isActive()to conditionally render the check icon, leveraging the new state-derived active flags.apps/client/src/features/editor/components/bubble-menu/node-selector.tsx (1)
16-17: Good use of useEditorState for performance optimization.The introduction of
useEditorStateto derive reactive editor state is a solid performance improvement that aligns with the PR's goal of reducing re-renders. This approach ensures the component only re-renders when the specific editor state properties change, rather than on every transaction.Also applies to: 40-59
apps/client/src/features/editor/components/excalidraw/excalidraw-menu.tsx (5)
1-14: LGTM - Imports updated correctly.The addition of
useEditorStatealigns with the performance improvement objective of this PR.
30-43: Good use ofuseEditorStatefor performance optimization.The selector correctly derives the width attribute needed for rendering. The null-check for the editor is appropriate.
45-63: LGTM - Quote normalization only.No functional changes; just style consistency improvements.
82-92: LGTM - Rendering logic correctly uses derived state.The null-safe access to
editorState?.widthand conditional rendering appropriately leverage the optimized state fromuseEditorState.
97-97: LGTM - Default export added.The default export addition is appropriate and follows common patterns.
apps/client/src/features/editor/components/callout/callout-menu.tsx (4)
5-5: LGTM: Import changes support the new derived state pattern.The addition of
useEditorStateenables reactive state computation, and the removal of the unusedDividerimport cleans up dependencies.Also applies to: 13-13
113-113: Critical fix: Corrected malformed pluginKey.The pluginKey typo (
callout-menu}}→callout-menu) could have caused plugin registration or lifecycle issues. Good catch.
132-132: LGTM: Variant bindings properly use derived state.The optional chaining correctly handles the null case, falling back to
"default"variant when editor state is unavailable.Also applies to: 143-143, 154-154, 165-165
25-185: Performance optimization aligns with PR objectives.The refactoring successfully reduces render-time computations by replacing four inline
editor.isActivechecks with a single memoizeduseEditorStateselector. This pattern prevents unnecessary re-renders when unrelated editor state changes, directly addressing the PR's performance improvement goal.The
shouldShowcallback correctly continues to use directeditor.isActiveas it's invoked by Tiptap's plugin system lifecycle rather than component render.apps/client/src/features/editor/components/drawio/drawio-menu.tsx (4)
1-14: LGTM! Imports are well-organized.The addition of
useEditorStatealigns with the PR objective of improving editor performance by enabling selective reactivity. The other imports (useCallback,sticky,PMNode) are appropriately added to support the refactored implementation.
28-41: Excellent use ofuseEditorStateselector pattern.The selector properly isolates drawio-specific state (active status and width), which will prevent unnecessary rerenders when other editor state changes. The null check for
ctx.editorand the width parsing logic are both correctly implemented. This is a key performance improvement aligned with the PR objective.
87-89: Improved conditional rendering with derived state.The conditional rendering now uses
editorState?.widthinstead of directly accessingeditor.getAttributes("drawio")?.width, which is more efficient and consistent with the performance optimization approach. The value is also correctly parsed to an integer in the selector.
95-95: LGTM! Default export added for convenience.Adding a default export while preserving the named export is a non-breaking change that provides flexibility for consumers of this component.
apps/client/src/features/editor/components/bubble-menu/bubble-menu.tsx (1)
72-103: Items array refactor looks good, pending null guard.The migration from
editor.isActive()toeditorStatepredicates in theisActivecallbacks is correct and will reduce unnecessary re-renders by relying on derived state. Commands appropriately continue usingprops.editorfor execution.This implementation is sound once the null guard (flagged in lines 54-70) is in place.
apps/client/src/features/editor/components/bubble-menu/text-alignment-selector.tsx (4)
11-12: Good type refinement with explicit nullability.Changing the editor prop type from
ReturnType<typeof useEditor>toEditor | nullmakes the nullability explicit and improves type clarity. The addition ofuseEditorStateimport aligns with the performance optimization pattern.Also applies to: 16-16
35-53: Excellent null-safe implementation of editorState.The implementation properly guards against null editor at two levels:
- Inside the selector (lines 38-40)
- At the component level with an early return (lines 51-53)
This ensures type safety and prevents runtime errors when the editor is unavailable. The derived alignment state will optimize re-renders by only updating when actual alignment state changes.
82-82: Improved activeItem logic with sensible fallback.The new computation
items.filter((item) => item.isActive()).pop() ?? items[0]correctly identifies the active alignment and falls back to the first item (left align) when none are active. This is more intuitive than a fixed fallback and properly handles the edge case where no alignment is explicitly set.
95-95: Dynamic icon rendering improves UX.Rendering
activeItem.icondynamically instead of a static icon provides better visual feedback by showing the currently active alignment in the button. This makes the UI more intuitive and informative.apps/client/src/features/editor/components/bubble-menu/color-selector.tsx (5)
12-13: LGTM: Proper type import and new hook.The switch to a type-only import for
Editorand the addition ofuseEditorStatealign with the PR's goal to improve editor performance by deriving reactive state.
22-22: LGTM: More explicit prop type.The change from
ReturnType<typeof useEditor>toEditor | nullis clearer and properly typed for the null check added below.
132-134: LGTM: Proper null guards.The early return with null checks for both
editorandeditorStateis appropriate defensive programming and aligns with theEditor | nullprop type.
136-142: LGTM: Efficient state lookup.Using the derived
editorStatemap instead of callingeditor.isActiveduring render is the correct pattern and avoids redundant queries.
179-179: LGTM: Correct usage of editorState for UI.The checkmark visibility correctly uses the derived
editorStatemap, avoiding directeditor.isActivecalls during render.apps/client/src/features/editor/components/image/image-menu.tsx (4)
5-5: LGTM: Performance optimization import.The
useEditorStatehook import is appropriate for the performance improvements outlined in the PR objectives.
106-106: Good catch: Fixed pluginKey typo.The removal of the trailing
}}characters corrects a malformed plugin key string.
126-126: LGTM: UI now consumes derived state.The alignment button variants now use
editorState?.isAlignLeft/Center/Rightinstead of directeditor.isActivecalls, which reduces re-renders. Optional chaining correctly handles the null case.Also applies to: 137-137, 148-148
155-157:NodeWidthResize’swidthprop is optional – no change needed.
TheImageWidthPropsinterface declareswidth?: string, so omitting it falls back to the default (w={100}) as intended.Likely an incorrect or invalid review comment.
apps/client/src/features/editor/components/video/video-menu.tsx (3)
5-5: LGTM!The
useEditorStateimport is correct and aligns with the PR's objective to introduce reactive state management for editor UI components.
126-126: LGTM: Improved reactive alignment state management.The alignment button variants now correctly use derived
editorStateflags with proper null-safe optional chaining. This eliminates directeditor.isActivecalls and ensures the UI reactively updates only when alignment state changes.Also applies to: 137-137, 148-148
155-160: Keep the existing truthy width guard. The Slider in NodeWidthResize enforces min={10}, so editorState.width will never be 0—it’s either null (hides the control) or ≥10 (renders it) and the currenteditorState?.widthcheck is sufficient.apps/client/src/features/editor/page-editor.tsx (4)
10-15: LGTM: useEditorState import added for reactive state derivation.The addition of
useEditorStateenables deriving reactive state from the editor without triggering full component re-renders on every transaction, which aligns with the performance improvement objective.
221-221: Excellent performance optimization!Setting
shouldRerenderOnTransaction: falseprevents unnecessary React re-renders on every ProseMirror transaction, significantly improving editor responsiveness. Combined withuseEditorStatefor selective reactivity, this follows tiptap's recommended performance pattern.
279-284: Well-implemented reactive state derivation.The
useEditorStatehook with a focused selector extracts only theisEditablestate, ensuring re-renders occur only when editability changes rather than on every transaction. The optional chaining and fallback value provide safe null handling.
404-417: Correct usage of derived editable state.Replacing
editor.isEditablewitheditorIsEditableensures the menu components only re-render when editability changes, not on every transaction. This maintains correctness while improving performance.
4231ba9 Merge commit '042836cb6d7cc1f71af3ce44c7957f8abbbf8f25' into feat/aar_edition 042836c sync 4f1f0ba fix 3164b69 feat: api keys management (EE) (docmost#1665) 16c1e86 fix comment space c9b1cad sync bf8cf62 feat: Typesense search driver (EE) (docmost#1664) 5a2e16a Merge commit '31350303760163384113bf49d07127e886f94907' into feat/aar_edition 3bc710d Adds CLAUDE.md documentation 16914f1 Block search for non-indexed shares ca75e29 Set default page mode to Read 3135030 fix editor converter (docmost#1647) 3fae41a fix: editor performance improvements (docmost#1648) b50e256 sync 1f3b0c7 cloud fix 3c4cab0 v0.23.2 4de25a8 invalidate queries on space deletion cf5bbb1 fix import html processing ac17521 sync 9ac180f fix: enhance page import (docmost#1570) 46669fe (cloud) disable page sharing in trial mode fe6ecdf fix: update combobox props in SpaceSelect component (docmost#1564) 04ae1d7 Allow lastColumnResizable in table 1280f96 feat: implement space and workspace icons (docmost#1558) 61d1cf8 fix: reset file inputs after import f413720 - sync - reinstantiate S3 client to fix file upload errors during import - delete import zip file after use 8e16ad9 v0.23.1 7ada3cb fix: page import task (docmost#1551) 47c5417 sync dc06502 sync 091e790 fix attachment search in cloud ae24ea2 v0.23.0 9df6061 lock file 31053e2 update mermaid eb8e850 use debug c99bfb8 make print better 26ea04e sync 6cc58c5 sync 7d2ff34 UI fixes b08d37f fix d43ee77 remove debug log 5d91eb4 feat: queue imported attachments for indexing 3e9f6b1 Remove version from docker-compose.yml [deprecated] (docmost#1011) db55de9 feat: progressive web app (docmost#614) 1919eba New Crowdin updates (docmost#1522) 7951b2e New Crowdin updates (docmost#1509) 73b78f6 more translations cf7534d fix version display adec36d fix: adjust margins - use default browser highlight background f9e1080 sync 00e499b Fixing extra page bug on print (docmost#1478) 5ee6e46 checkbox aligned to text (docmost#1486) 1f797c3 fix: confluence drawio import (docmost#1518) f12866c feat(EE): full-text search in attachments (docmost#1502) dcbb65d feat(EE): LDAP integration (docmost#1515) 5968764 feat: emoji callout icon (docmost#1323) 242fb6b fix: set mermaid theme based on computed color scheme (docmost#1438) 74cd890 feat(EE): implement SSO group sync for SAML and OIDC (docmost#1452) 509622a ignore type error 937386e fix: hide table handles in readonly mode 60a373f fix: readonly editor table responsiveness 73ee6ee feat: subpages (child pages) list node (docmost#1462) 7d1e5bc feat: table row/column drag and drop (docmost#1467) aa58e27 fix: exclude deleted pages (docmost#1494) 08135a2 sync d92a942 sync 5012a68 sync 5a33777 feat: debug mode env variable (docmost#1450) 3b85f4b fix: enforce C collation for page position ordering to ensure consistent behavior in Postgres 17+ (docmost#1446) cb2a039 fix: invalidate trashed page from tree state 95b7be6 fix: hide trash from can view permission (docmost#1445) b0c5572 fix nested taskList in markdown export (docmost#1443) dddfd48 feat: add attachments support for single page exports (docmost#1440) aa6eec7 fix: exclude trashed pages from position generation 97a7701 fix local storage copy function (docmost#1442) b97eb85 sync git-subtree-dir: vendor/app git-subtree-split: 4231ba9
* Switch to useEditorState * change shouldRerenderOnTransaction to false
Summary by CodeRabbit
Bug Fixes
Performance and UX Improvements
Refactor