Closed
Description
Describe the bug
When passing a state containing a Date object into $state.snapshot
, it got turned into a string (more precisely an ISO 8601 date string, as if toISOString()
is called on the Date object). The equivalent structuredClone
function doesn't have the same issue.
Reproduction
Logs
No response
System Info
`[email protected]` on the Svelte 5 REPL
Severity
blocking an upgrade