Update packages/svelte/src/internal/client/reactivity/effects.js

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/17116/head
Rich Harris 2 weeks ago committed by GitHub
parent 0bd13a9617
commit 3197022471
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -48,7 +48,7 @@ import { without_reactive_context } from '../dom/elements/bindings/shared.js';
* @param {'$effect' | '$effect.pre' | '$inspect'} rune
*/
export function validate_effect(rune) {
if (active_effect === null && active_reaction === null) {
if (active_effect === null) {
if (active_reaction === null) {
e.effect_orphan(rune);
}

Loading…
Cancel
Save