You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The $state.is rune will always return false if run on the server even when $state and object are the same.
e.g.
constobj={"hi": 1};consta=$state(obj)// this is true on the server but false on the client which seems correctconsole.log(a===obj)// this is false on the server but true on the client which seems wrongconsole.log($state.is(a,obj))
I would expect $state.is to return true on the server if the $state and object are the same.
Describe the bug
The
$state.is
rune will always returnfalse
if run on the server even when $state and object are the same.e.g.
I would expect
$state.is
to returntrue
on the server if the $state and object are the same.Reproduction
SvelteLab
See the logs in the server console:
In the browser
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: