From 2e8a205161cdeba3563bba6bf6221cda1d8dc037 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 27 Jul 2024 15:14:54 -0400 Subject: [PATCH] chore: remove outdated comment (#12632) --- documentation/docs/03-runes/01-state.md | 2 -- .../svelte-5-preview/src/routes/docs/content/01-api/02-runes.md | 2 -- 2 files changed, 4 deletions(-) diff --git a/documentation/docs/03-runes/01-state.md b/documentation/docs/03-runes/01-state.md index c8b6b4d204..ba07ecf0cb 100644 --- a/documentation/docs/03-runes/01-state.md +++ b/documentation/docs/03-runes/01-state.md @@ -111,8 +111,6 @@ To take a static snapshot of a deeply reactive `$state` proxy, use `$state.snaps This is handy when you want to pass some state to an external library or API that doesn't expect a proxy, such as `structuredClone`. -> Note that `$state.snapshot` will clone the data when removing reactivity. If the value passed isn't a `$state` proxy, it will be returned as-is. - ## `$state.is` Sometimes you might need to compare two values, one of which is a reactive `$state(...)` proxy but the other is not. For this you can use `$state.is(a, b)`: diff --git a/sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md b/sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md index 5f0ee7c0ea..a5074f386b 100644 --- a/sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md +++ b/sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md @@ -110,8 +110,6 @@ To take a static snapshot of a deeply reactive `$state` proxy, use `$state.snaps This is handy when you want to pass some state to an external library or API that doesn't expect a proxy, such as `structuredClone`. -> Note that `$state.snapshot` will clone the data when removing reactivity. If the value passed isn't a `$state` proxy, it will be returned as-is. - ## `$state.is` Sometimes you might need to compare two values, one of which is a reactive `$state(...)` proxy. For this you can use `$state.is(a, b)`: