Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fragment loses reactivity when using HDE #330

Open
wrnrlr opened this issue Jul 11, 2024 · 1 comment
Open

Fragment loses reactivity when using HDE #330

wrnrlr opened this issue Jul 11, 2024 · 1 comment

Comments

@wrnrlr
Copy link
Contributor

wrnrlr commented Jul 11, 2024

There is a bug in the hyper dom expression runtime where sometimes it loses reactivity after one update.
In my example I use a context, but I am not sure if it can be reproduced in a different way.

Example

This is strange because as I understand the array is wrapped by h.Fragment

@ryansolid
Copy link
Owner

Yeah it is an odd one. It has to do with wrapping and unwrapping of h functions which is why we don't see this in other versions.. Like if I change the render callto render(Context(), document.body) it works but other variations don't. What's happening is the Nested Component is getting prematurely released. I'm pretty sure this is related to the change I made a few versions back to properly handle parent child execution order,.. but there is still a bug here.

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

No branches or pull requests

2 participants