We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7541167 commit 80e4f6bCopy full SHA for 80e4f6b
src/compiler/compile/render_dom/wrappers/IfBlock.ts
@@ -526,14 +526,17 @@ export default class IfBlockWrapper extends Wrapper {
526
${name}.c();
527
${has_transitions && b`@transition_in(${name}, 1);`}
528
${name}.m(${update_mount_node}, ${anchor});
529
- } else {
+ }${
530
+ (dynamic || has_transitions) &&
531
+ `else {
532
${dynamic && b`${name}.p(#ctx, #dirty);`}
533
${
534
has_transitions &&
535
b`if (${block.renderer.dirty(branch.dependencies)}) {
536
@transition_in(${name}, 1);
537
}`
538
}
539
+ }`
540
541
`;
542
0 commit comments