Skip to content

Commit 00325c7

Browse files
committed
chore: add note for state.is using object.is
1 parent ef50e45 commit 00325c7

File tree

1 file changed

+2
-0
lines changed
  • sites/svelte-5-preview/src/routes/docs/content/01-api

1 file changed

+2
-0
lines changed

sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ Sometimes you might need to compare two values, one of which is a reactive `$sta
130130

131131
This is handy when you might want to check if the object exists within a deeply reactive object/array.
132132

133+
> `$state.is` uses `Object.is` to check if two values are the same value.
134+
133135
## `$derived`
134136

135137
Derived state is declared with the `$derived` rune:

0 commit comments

Comments
 (0)