-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as not planned
Closed as not planned
Copy link
Description
Describe the bug
If you have a class with a method and a getter, whenever a non-dependent state changes outside of the class, the getter will rerun but the method won't. I don't expect the getter to rerun if it doesn't doesn't access any reactive state from inside the getter. A class method doesn't rerun unless it accesses a reactive variable inside that changed.
Reproduction
Logs
No response
System Info
System:
OS: macOS 14.3
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 3.94 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.2 - /usr/local/bin/node
npm: 10.5.0 - /usr/local/bin/npm
pnpm: 8.11.0 - /usr/local/bin/pnpm
bun: 1.1.0 - ~/.bun/bin/bun
Browsers:
Chrome: 120.0.6099.109
Edge: 114.0.1823.82
Safari: 17.3
npmPackages:
svelte: 5.0.0-next.107 => 5.0.0-next.107Severity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
No labels