mirror of https://github.com/sveltejs/svelte
fix: `$state.is` missing second argument on the server (#11835)
* fix: `$state.is` missing second argument on the server * chore: update testpull/11840/head
parent
22e2aeca76
commit
82a645f8d0
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: `$state.is` missing second argument on the server
|
@ -0,0 +1,4 @@
|
||||
<p>true</p>
|
||||
<p>true</p>
|
||||
<p>true</p>
|
||||
<p>true</p>
|
@ -0,0 +1,10 @@
|
||||
<script>
|
||||
const obj = {};
|
||||
const a = $state(obj)
|
||||
const b= $state(obj)
|
||||
</script>
|
||||
|
||||
<p>{a === obj}</p>
|
||||
<p>{$state.is(a, obj)}</p>
|
||||
<p>{a === b}</p>
|
||||
<p>{$state.is(a, b)}</p>
|
Loading…
Reference in new issue