Skip to content

(fix) - replacing a node#1900

Merged
JoviDeCroock merged 5 commits into
masterfrom
replaceNode
Aug 27, 2019
Merged

(fix) - replacing a node#1900
JoviDeCroock merged 5 commits into
masterfrom
replaceNode

Conversation

@JoviDeCroock

Copy link
Copy Markdown
Member

No description provided.

…is is a combination between hydration and replacing a node we have a combination of excessDomChildren and dom which did not get cleared for the case of textNodes
@coveralls

coveralls commented Aug 27, 2019

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.1%) to 99.881% when pulling 21ff663 on replaceNode into e407365 on master.

@JoviDeCroock JoviDeCroock requested a review from developit August 27, 2019 18:13

@marvinhagemeister marvinhagemeister left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh I like this one a lot 👍 👍 Really great work 💯

@marvinhagemeister

Copy link
Copy Markdown
Member

Weird, GitHub seems to be bugging out for me. The master branch says that this PR is merged, but that's not the case in the UI here.

Comment thread src/diff/index.js Outdated
@JoviDeCroock JoviDeCroock merged commit 4a581a1 into master Aug 27, 2019
@JoviDeCroock JoviDeCroock deleted the replaceNode branch August 27, 2019 21:31
@cristianbote

Copy link
Copy Markdown
Member

This fixes #1896

porfirioribeiro pushed a commit to porfirioribeiro/preact that referenced this pull request Sep 3, 2019
* (tests) - add test for the replaceNode render case seemingly since this is a combination between hydration and replacing a node we have a combination of excessDomChildren and dom which did not get cleared for the case of textNodes

* (fix) - clear excessDomChildren for the textNode case

* (refactor) - save some bytes by inlining check and allocation
porfirioribeiro pushed a commit to porfirioribeiro/preact that referenced this pull request Sep 3, 2019
* (tests) - add test for the replaceNode render case seemingly since this is a combination between hydration and replacing a node we have a combination of excessDomChildren and dom which did not get cleared for the case of textNodes

* (fix) - clear excessDomChildren for the textNode case

* (refactor) - save some bytes by inlining check and allocation
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.

4 participants