-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
only check is connected for dom nodes #4409
Merged
Merged
Conversation
This file contains 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
📊 Tachometer Benchmark ResultsSummaryduration
usedJSHeapSize
Resultscreate10k
duration
usedJSHeapSize
filter-list
duration
usedJSHeapSize
hydrate1k
duration
usedJSHeapSize
many-updates
duration
usedJSHeapSize
replace1k
duration
usedJSHeapSize
run-warmup-0
run-warmup-1
run-warmup-2
run-warmup-3
run-warmup-4
run-final
text-update
duration
usedJSHeapSize
todo
duration
usedJSHeapSize
update10th1k
duration
usedJSHeapSize
|
Size Change: +39 B (+0.06%) Total Size: 61.8 kB
ℹ️ View Unchanged
|
JoviDeCroock
force-pushed
the
only-check-for-dom-nodes
branch
from
June 15, 2024 11:08
87376bc
to
0a17073
Compare
JoviDeCroock
requested review from
developit,
andrewiggins and
marvinhagemeister
June 15, 2024 11:16
JoviDeCroock
force-pushed
the
only-check-for-dom-nodes
branch
from
June 25, 2024 13:47
0a17073
to
0c05391
Compare
JoviDeCroock
force-pushed
the
only-check-for-dom-nodes
branch
from
June 25, 2024 15:30
0c05391
to
4c114f9
Compare
JoviDeCroock
force-pushed
the
only-check-for-dom-nodes
branch
from
June 25, 2024 15:31
4c114f9
to
bd29648
Compare
marvinhagemeister
approved these changes
Jun 28, 2024
Merged
miguelrk
added a commit
to netzo/dsa
that referenced
this pull request
Jul 9, 2024
…to DOM issues See the following for the changes introduced which might have caused this: - preactjs/preact#4409 - preactjs/preact#4421 - preactjs/preact#4403
2 tasks
This was referenced Aug 14, 2024
This was referenced Sep 3, 2024
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.
isConnected
is not present on text nodes, this prevents us from crashing due to callinggetDomSibling
for a text node. This does highlight that Google Translate leads to a bug, in the example given in #4318 (comment) we get the following as outputThis is translated to Dutch, as you can see the
h1
and the firsthello
reconcile correctly, however everything after the interpolated{label}
does not.When I replace
{props.label}
with a normal string or with<span>{props.label}</span>
it does work correctly.This does however not solve the other issue mentioned on this PR, which does not have a way to reproduce. I reckon that one could be related to the dom-sibling of
oldVNode
also not beingconnected
due to removing a lot of fragment-like wrapped children andoldDom
being captured to the first of said list.