Skip to content

Memoize the Monaco options object in AdvancedCodeEditor #976

Description

@RUKAYAT-CODER

Overview
In src/components/code/AdvancedCodeEditor.tsx the large inline options={{...}} object (lines 285-305) is recreated on every code/fontSize change, forcing Monaco to re-apply configuration on each keystroke. Memoize the options and separate editor-affecting state from content state.

Metadata

Metadata

Assignees

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