Skip to content

editor: Ensure interactive after toggling via menu#481

Merged
michaeltaranto merged 1 commit intomasterfrom
fix-inert-editor
Feb 25, 2026
Merged

editor: Ensure interactive after toggling via menu#481
michaeltaranto merged 1 commit intomasterfrom
fix-inert-editor

Conversation

@michaeltaranto
Copy link
Contributor

Fixes an issue where the editor would remain inert when hidden via the "Hide Code" button and then shown via the menu.

@michaeltaranto michaeltaranto requested a review from a team as a code owner February 24, 2026 23:41
@changeset-bot
Copy link

changeset-bot bot commented Feb 24, 2026

🦋 Changeset detected

Latest commit: 2f85e78

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
playroom Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@felixhabib felixhabib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason this needs to be a layout effect over a useEffect?

@michaeltaranto
Copy link
Contributor Author

any reason this needs to be a layout effect over a useEffect?

Yes, this ensures that no user interaction can happen in between "needing to update" the attribute and it "actually updating". Whereas updating in a plain effect gives you no timing guarantees

@michaeltaranto michaeltaranto merged commit 5ee8ccb into master Feb 25, 2026
7 of 8 checks passed
@michaeltaranto michaeltaranto deleted the fix-inert-editor branch February 25, 2026 02:04
@seek-oss-ci seek-oss-ci mentioned this pull request Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants