Fix fridge words after creation and remount - #441
Merged
Conversation
commit: |
Deploying playhtml with
|
| Latest commit: |
2c74d7e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d22dbce3.playhtml.pages.dev |
| Branch Preview URL: | https://cx-fix-fridge-word-drag.playhtml.pages.dev |
Owner
Author
Preview evidenceDeployed fridge preview: new words move immediately and built-in positions survive remounts. Open preview · Review all evidence · Commit New word moved immediately on previewA newly created word moved 120px right and 60px down without a refresh on the deployed PR preview. Open captured page · 1440×1000 Built-in positions survive remount on previewThe built-in set retained its historical ID and transform after an automated hide-and-show cycle on the deployed PR preview. Open captured page · 1440×1000 Published by PR Evidence. Media is temporary and is removed after retention expires. |
Deploying we-were-online-website with
|
| Latest commit: |
2c74d7e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://bf94fc99.we-were-online-website.pages.dev |
| Branch Preview URL: | https://cx-fix-fridge-word-drag.we-were-online-website.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Why
New custom words could appear before their drag handlers were registered, leaving them immovable until refresh. Long-lived tabs could also remount the built-in word set after the selector ID counter advanced. Those words then loaded positions belonging to different IDs and collapsed together. Fresh private tabs reset the counter, which is why the second failure appeared profile-specific.
Reproduction
Verification
PR Evidence contains screenshots from both production-built browser flows.
Release notes
Adds a patch changeset for
@playhtml/react. No docs or starter-template updates are needed because the public API and usage remain unchanged.