|
|
|
@ -1145,15 +1145,16 @@ export default class ElementWrapper extends Wrapper {
|
|
|
|
|
|
|
|
|
|
|
|
block.chunks.hydrate.push(updater);
|
|
|
|
block.chunks.hydrate.push(updater);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Assume that style has changed through the spread attribute
|
|
|
|
|
|
|
|
if (has_spread) {
|
|
|
|
|
|
|
|
block.chunks.update.push(updater);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
const dependencies = [
|
|
|
|
const dependencies = [
|
|
|
|
...this.dynamic_style_dependencies,
|
|
|
|
...this.dynamic_style_dependencies,
|
|
|
|
...expression.dynamic_dependencies()
|
|
|
|
...expression.dynamic_dependencies()
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
// Assume that style has changed through the spread attribute
|
|
|
|
if (dependencies.length > 0) {
|
|
|
|
if (has_spread) {
|
|
|
|
|
|
|
|
block.chunks.update.push(updater);
|
|
|
|
|
|
|
|
} else if (dependencies.length > 0) {
|
|
|
|
|
|
|
|
const is_dirty = block.renderer.dirty(dependencies);
|
|
|
|
const is_dirty = block.renderer.dirty(dependencies);
|
|
|
|
const condition = should_cache
|
|
|
|
const condition = should_cache
|
|
|
|
? x`${is_dirty} && (${cached_snippet} !== (${cached_snippet} = ${snippet}))`
|
|
|
|
? x`${is_dirty} && (${cached_snippet} !== (${cached_snippet} = ${snippet}))`
|
|
|
|
@ -1165,6 +1166,7 @@ export default class ElementWrapper extends Wrapper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`);
|
|
|
|
`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|