-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
Describe the bug
svelte reactivity is completely broken out of the box.
with import { SvelteDate } from 'svelte/reactivity'
please see playground example.
h1
is reactive, as reasonably expectedh2
andh3
are both not reactive! (time not updating)- but like
h4
that is suddenly reactive?!
なに??!!
is the behavior indented?
am I missing something?
bonus
change playground example
- let date=new SvelteDate()
+ let date=$state(new Date())
nothing updates at all.
according to Advanced Svelte / Advanced reactivity / Reactive built-ins that should work.
Reproduction
Logs
No response
System Info
all not working
- Chromium Version 129.0.6668.89 (Official Build) snap (64-bit)
- Firefox 132.0b5 20241008203725 mozilla-deb
- node v18.19.0
Severity
blocking all usage of svelte
Metadata
Metadata
Assignees
Labels
No labels