Skip to content

fix: render when clearing.#13

Merged
knightedcodemonkey merged 2 commits into
mainfrom
bananas
Mar 17, 2026
Merged

fix: render when clearing.#13
knightedcodemonkey merged 2 commits into
mainfrom
bananas

Conversation

@knightedcodemonkey

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 17, 2026 20:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to ensure the preview updates (re-renders) when the user clears component/styles source, so the rendered output is removed rather than remaining stale.

Changes:

  • Always call maybeRender() after clearing component source.
  • Always call maybeRender() after clearing styles source.
  • Tighten Playwright coverage by asserting rendered DOM elements are removed after clearing component source.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/app.js Removes editor-existence guards so clearing source always schedules an auto-render update.
playwright/app.spec.ts Adds an assertion that previously-rendered button content is removed after clearing component source.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app.js Outdated
Comment thread playwright/app.spec.ts Outdated
@knightedcodemonkey
knightedcodemonkey merged commit 8c60315 into main Mar 17, 2026
1 check passed
@knightedcodemonkey
knightedcodemonkey deleted the bananas branch March 17, 2026 20:46
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