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 0853017 commit d2d1b20Copy full SHA for d2d1b20
packages/svelte/src/internal/client/reactivity/effects.js
@@ -381,11 +381,7 @@ export function execute_effect_teardown(effect) {
381
set_is_destroying_effect(true);
382
set_active_reaction(null);
383
try {
384
- if (typeof teardown === 'function') {
385
- teardown.call(null);
386
- } else {
387
- teardown.abort('effect destroyed');
388
- }
+ teardown.call(null);
389
} finally {
390
set_is_destroying_effect(previously_destroying_effect);
391
set_active_reaction(previous_reaction);
0 commit comments