Skip to content

fix: live preview control box stale attributes and execPhoenixFn hangs#3020

Open
devvaannsh wants to merge 2 commits into
mainfrom
pluto/lp-core
Open

fix: live preview control box stale attributes and execPhoenixFn hangs#3020
devvaannsh wants to merge 2 commits into
mainfrom
pluto/lp-core

Conversation

@devvaannsh

Copy link
Copy Markdown
Member

This PR adds two small live preview fixes.

  1. Stale control box attributes - So earlier when we edit elements attributes (like id or class) directly in the source code, the control box in the live preview kept showing the old values. Now whenever the selected element's markup changes, we refresh the control box content in place so it always stays in sync with the code.

  2. execPhoenixFn promises hanging forever - sometimes when the editor got disconnected while a execPhoenixFn call was in flight, the promise never resolved and whoever was awaiting it (like the styles bar reset) just hung forever. Now, we have a 30s timeout so it rejects instead of hanging.

Tested things properly. Safe to merge!

@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant