Skip to content

Prevent the Monaco editor from being recreated on every keystroke. #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2025

Conversation

miyukoc
Copy link
Contributor

@miyukoc miyukoc commented Aug 10, 2025

Split the actions dependency out into a separate effect. Use a ref for runCode so that we can memoize amaranthSourceEditorActions and not re-run the actions effect on every render either.

Split the actions dependency out into a separate effect. Use a ref for
runCode so that we can memoize amaranthSourceEditorActions and not
re-run the actions effect on every render either.
@whitequark whitequark merged commit cb9bff1 into amaranth-lang:main Aug 10, 2025
3 checks passed
@whitequark
Copy link
Member

Thanks!

@miyukoc miyukoc deleted the patch-fix-monaco-recreation branch August 10, 2025 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants