-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Describe the bug
There some sort of reactivity issue with .svelte.js files - component props declared with $state are not updated when changed inside of component. In the example, show state changed in component is ignored in .svelte.js and setting the value of reactive show to true doesn't trigger component update.
With $set in Svelte 4 it worked fine, $set with createClassComponent in Svelte 5 has this issue.
Reproduction
https://svelte.dev/playground/f8ad8de7487241db9eb2aa6938793f2b?version=5.1.9
Logs
No response
System Info
System:
OS: Linux 5.15 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700KF
Memory: 28.48 GB / 31.27 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 23.1.0 - ~/.volta/tools/image/node/23.1.0/bin/node
npm: 10.9.0 - ~/.volta/tools/image/node/23.1.0/bin/npm
pnpm: 9.12.2 - ~/.volta/bin/pnpm
bun: 1.1.34 - ~/.bun/bin/bun
npmPackages:
rollup: ^4.24.4 => 4.24.4
svelte: ^5.1.9 => 5.1.9Severity
blocking an upgrade
EskelCz