|
|
@ -182,10 +182,7 @@ export function user_effect(fn) {
|
|
|
|
// Non-nested `$effect(...)` in a component should be deferred
|
|
|
|
// Non-nested `$effect(...)` in a component should be deferred
|
|
|
|
// until the component is mounted
|
|
|
|
// until the component is mounted
|
|
|
|
var defer =
|
|
|
|
var defer =
|
|
|
|
active_effect !== null &&
|
|
|
|
active_effect !== null && (active_effect.f & BRANCH_EFFECT) !== 0 && active_reaction === null;
|
|
|
|
(active_effect.f & BRANCH_EFFECT) !== 0 &&
|
|
|
|
|
|
|
|
component_context !== null &&
|
|
|
|
|
|
|
|
!component_context.m;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (DEV) {
|
|
|
|
if (DEV) {
|
|
|
|
define_property(fn, 'name', {
|
|
|
|
define_property(fn, 'name', {
|
|
|
|