-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Svelte 5: Document $svelte.is(a,b) using Object.is(a,b). #12167
Comments
I don't understand point 1 and 2. The example in the docs is assigning |
Oh wow. 🤦 Idk how that just went right over my head, but every time I looked at this code sample, I just kept thinking it was the |
* overview * getting started * component fundamentals * basic markup * control flow * snippets * styles and classes * transitions and animations (WIP, needs motion and tweened, reference should have more details so we can point to it) * actions WIP (add $effect) * bindings * special elements * data fetching (WIP, what else can we put there?) * stores * imperative component api * reactivity fundamentals * contex * lifecycle hooks * state * debugging * fix * more details on $state.is, closes sveltejs/svelte#12167 * side effects * typescript related: sveltejs/svelte#11502 * custom elements * events
Describe the problem
The current documentation for
$state.is
equates$state.is()
to an===
operator when the actual PR's underlying implementation usesObject.is(a, b)
.Describe the proposed solution
This information should be surfaced to the documentation since it does not yield identical behavior to the
===
operator.Importance
nice to have
The text was updated successfully, but these errors were encountered: