Skip to content

Commit b1469ba

Browse files
committed
remove .m flag on component context
1 parent 5442111 commit b1469ba

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

packages/svelte/src/internal/client/context.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ export function push(props, runes = false, fn) {
144144
c: null,
145145
d: false,
146146
e: null,
147-
m: false,
148147
s: props,
149148
x: null,
150149
l: null

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ export function user_effect(fn) {
182182
// Non-nested `$effect(...)` in a component should be deferred
183183
// until the component is mounted
184184
var defer =
185-
active_effect !== null &&
186-
(active_effect.f & BRANCH_EFFECT) !== 0 &&
187-
component_context !== null &&
188-
!component_context.m;
185+
active_effect !== null && (active_effect.f & BRANCH_EFFECT) !== 0 && active_reaction === null;
189186

190187
if (DEV) {
191188
define_property(fn, 'name', {

packages/svelte/src/internal/client/types.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export type ComponentContext = {
1818
d: boolean;
1919
/** deferred effects */
2020
e: null | Array<() => void | (() => void)>;
21-
/** mounted */
22-
m: boolean;
2321
/**
2422
* props — needed for legacy mode lifecycle functions, and for `createEventDispatcher`
2523
* @deprecated remove in 6.0

0 commit comments

Comments
 (0)