Skip to content

Commit f32818c

Browse files
committed
easier debugging
1 parent 5083231 commit f32818c

File tree

1 file changed

+2
-1
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { inspect_effects, set_inspect_effects } from './sources.js';
1919
import { get_stack } from '../dev/tracing.js';
2020
import { tracing_mode_flag } from '../../flags/index.js';
2121
import { component_context } from '../context.js';
22+
import { UNINITIALIZED } from '../../../constants.js';
2223

2324
/**
2425
* @template V
@@ -51,7 +52,7 @@ export function derived(fn) {
5152
fn,
5253
reactions: null,
5354
rv: 0,
54-
v: /** @type {V} */ (null),
55+
v: /** @type {V} */ (UNINITIALIZED),
5556
wv: 0,
5657
parent: parent_derived ?? active_effect,
5758
ac: null

0 commit comments

Comments
 (0)