Closed
Description
<script>
const o = { v: true }
</script>
<div class:test={o.v}>
{o.v}
</div>
p(ctx, [dirty]) {
if (dirty & /*o*/ 1) {
toggle_class(div, "test", /*o*/ ctx[0].v);
}
}
https://svelte.dev/repl/5b14ec60637b43a184460475790105c0?version=3.31.2
Given that <div>{o.v}</div>
does not generate update code, neither should the class directive
Expected noop at fragment.p
Metadata
Metadata
Assignees
Labels
No labels