From e3d8ee6c6d665327e77a228c458df380a245fcf9 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Tue, 25 Jun 2024 16:01:57 +0100 Subject: [PATCH] chore: add note for state.is using object.is (#12180) --- .../svelte-5-preview/src/routes/docs/content/01-api/02-runes.md | 2 ++ 1 file changed, 2 insertions(+) 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 ce87ec6cf5..00a506c2c5 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 @@ -130,6 +130,8 @@ Sometimes you might need to compare two values, one of which is a reactive `$sta This is handy when you might want to check if the object exists within a deeply reactive object/array. +> `$state.is` uses `Object.is` to check if two values are the same value. + ## `$derived` Derived state is declared with the `$derived` rune: