-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
fix: ignore comments while comparing nodes in node_match #9197
fix: ignore comments while comparing nodes in node_match #9197
Conversation
🦋 Changeset detectedLatest commit: 4093a59 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 |
Thank you! Could you add a test to |
@dummdidumm Hi, i added a test for checking this issue, please let me know if there's any problem. |
@dummdidumm hi, just out of curiosity, did this pr have a problem in tests/changesets? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
related to issue sveltejs#9088 it doesn't solve the main problem of dependencies getting invalidated whenever value of a variable gets changed. but it fixes the behavior difference between the code with and without comments
Ignore trailing comments when comparing nodes with
node_match
ininvalidate
function.related to issue #9088
it doesn't solve the main problem of dependencies getting invalidated whenever value of a variable gets changed.
but it fixes the behavior difference between the code with and without comments
the problem is demonstrated in this repl: https://svelte.dev/repl/81bdbbbb88694b4a80d2619bd2dbfc2e?version=4.2.0