-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
chore: small tweaks on set_attributes() #15413
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
Changes from 2 commits
a0ab52b
ddde140
74bbc55
fb4bcb6
57a4ab2
346de0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| 'svelte': patch | ||
| --- | ||
|
|
||
| chore: small tweaks on set_attributes() | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,9 +88,11 @@ export function build_set_attributes( | |
| element_id, | ||
| is_dynamic ? attributes_id : b.literal(null), | ||
| b.object(values), | ||
| element.metadata.scoped && | ||
| context.state.analysis.css.hash !== '' && | ||
| b.literal(context.state.analysis.css.hash), | ||
| element.metadata.scoped && context.state.analysis.css.hash !== '' | ||
| ? b.literal(context.state.analysis.css.hash) | ||
| : is_custom_element | ||
| ? b.null | ||
| : false, | ||
|
||
| preserve_attribute_case, | ||
| is_custom_element, | ||
| is_ignored(element, 'hydration_attribute_changed') && b.true | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.