chore: add note for state.is using object.is (#12180)

pull/12164/head
Dominic Gannaway 3 months ago committed by GitHub
parent ef50e45aca
commit e3d8ee6c6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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:

Loading…
Cancel
Save