From b1fb430ee631a2208470d9dd1355e50af99c3cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vlas=C3=A1k?= Date: Sun, 22 Mar 2020 08:57:21 +0100 Subject: [PATCH] Do not null blocks on await outros --- src/runtime/internal/await_block.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/runtime/internal/await_block.ts b/src/runtime/internal/await_block.ts index f70cbd6c2c..ddd7e72011 100644 --- a/src/runtime/internal/await_block.ts +++ b/src/runtime/internal/await_block.ts @@ -1,4 +1,4 @@ -import { is_promise } from './utils'; +import { is_promise, noop } from './utils'; import { check_outros, group_outros, transition_in, transition_out } from './transitions'; import { flush } from './scheduler'; import { get_current_component, set_current_component } from './lifecycle'; @@ -27,9 +27,7 @@ export function handle_promise(promise, info) { info.blocks.forEach((block, i) => { if (i !== index && block) { group_outros(); - transition_out(block, 1, 1, () => { - info.blocks[i] = null; - }); + transition_out(block, 1, 1, noop); check_outros(); } });