Add check for last seen vnode in index.js#590
Conversation
🦋 Changeset detectedLatest commit: c01b20d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Add a check for the last seen vnode in index.js to improve vnode management.
|
It fixes the problem with infinite loop, but fragment content might not be rendered correctly: Screen.Recording.2025-10-03.at.15.31.43.mov |
|
@NiedziolkaMichal That one component going away isn't really a prefresh bug, nor a general one. It's an issue when no parent-elements are present for ever-changing component identities. i.e. if you have any normal DOM node in your tree. i.e. wrap Layout with EDIT: nvm, this is actually fixed in latest Preact, I just tried it locally. Recording.2025-10-03.155445.mp4 |
|
That's great to hear, thanks a lot for a quick fix |
Resolves #589
TODO: add a test