Reset current component after call to flush() in Promise callback

pull/5077/head
rdb 5 years ago
parent 55c809624d
commit e2a8aa8476

@ -14,7 +14,10 @@ let update_scheduled = false;
export function schedule_update() {
if (!update_scheduled) {
update_scheduled = true;
resolved_promise.then(flush);
resolved_promise.then(() => {
flush();
set_current_component(null);
});
}
}

Loading…
Cancel
Save