-
Notifications
You must be signed in to change notification settings - Fork 47
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
innerHTML fails to diff element when its children have been diffed previously #314
Comments
Is this a regression in |
no, it's been this way since i encountered this few months ago |
This is the offending line: https://github.com/tbranyen/diffhtml/blob/master/packages/diffhtml/lib/transaction.js#L135 Looks like we're reusing the state from a previous render, instead of creating a new transaction state for the updates. When I remove: |
I think I have a fix. When we encounter a previous mount being added into a new mount, we remove the previous StateCache. This occurred when you put PR here: #315 |
illustrated by this test:
The text was updated successfully, but these errors were encountered: