Skip to content

Commit a5cdc13

Browse files
bwbroersmaConduitry
authored andcommitted
Fixing #2689 correctly, checking outro.is_local for adding if(local).
1 parent 86c08c6 commit a5cdc13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/compile/render-dom/wrappers/EachBlock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ export default class EachBlockWrapper extends Wrapper {
510510
if (outro_block) {
511511
block.builders.outro.add_block(deindent`
512512
${iterations} = ${iterations}.filter(Boolean);
513-
for (let #i = 0; #i < ${view_length}; #i += 1) ${outro_block}(#i, 0);`
513+
for (let #i = 0; #i < ${view_length}; #i += 1) ${outro_block}(#i, 0, 0);`
514514
);
515515
}
516516

src/compiler/compile/render-dom/wrappers/Element/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ export default class ElementWrapper extends Wrapper {
744744
${outro_name} = @create_out_transition(${this.var}, ${fn}, ${snippet});
745745
`;
746746

747-
if (outro_block) {
747+
if (outro.is_local) {
748748
outro_block = deindent`
749749
if (#local) {
750750
${outro_block}

0 commit comments

Comments
 (0)