Skip to content

Hoist or memoize RichContentEditor ToolbarButton #975

Description

@RUKAYAT-CODER

Overview
In src/components/editor/RichContentEditor.tsx ToolbarButton is declared inside the component body (lines 46-72), giving it a new component identity on every keystroke-driven re-render and remounting all toolbar buttons. Hoist it to module scope or wrap it with memo/useCallback.

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions