fix: silence snapshot warnings inside `$inspect` (#13334)

It's not really actionable and also confusing because the user doesn't see `$state.snapshot` anywhere in their code
pull/13330/head
Simon H 2 months ago committed by GitHub
parent e4926d7507
commit c636fc67bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: silence snapshot warnings inside `$inspect`

@ -12,7 +12,7 @@ export function inspect(get_value, inspector = console.log) {
let initial = true;
inspect_effect(() => {
inspector(initial ? 'init' : 'update', ...snapshot(get_value()));
inspector(initial ? 'init' : 'update', ...snapshot(get_value(), true));
initial = false;
});
}

Loading…
Cancel
Save