Skip to content

Commit 05987bc

Browse files
committed
note to self
1 parent ff2e489 commit 05987bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/svelte/src/internal/client/dev/inspect.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export function inspect(get_value, inspector = console.log) {
3737

3838
render_effect(() => {
3939
inspect_fn = fn;
40+
// TODO ideally we'd use `snapshot` here instead of `deep_read`, and pass
41+
// the result to `fn` on the initial run, but it doesn't work because
42+
// of some weird (and possibly buggy?) behaviour around `batch_inspect`
4043
deep_read(get_value());
4144
inspect_fn = null;
4245

0 commit comments

Comments
 (0)