types + changeset

pull/14753/head
Dominic Gannaway 1 year ago
parent 085301728b
commit d2d1b201b5

@ -381,11 +381,7 @@ export function execute_effect_teardown(effect) {
set_is_destroying_effect(true);
set_active_reaction(null);
try {
if (typeof teardown === 'function') {
teardown.call(null);
} else {
teardown.abort('effect destroyed');
}
teardown.call(null);
} finally {
set_is_destroying_effect(previously_destroying_effect);
set_active_reaction(previous_reaction);

Loading…
Cancel
Save