### Describe the bug > State referenced in its own scope will never update. Did you mean to reference it inside a closure? (state_referenced_locally) What problem was this warning intended to avoid in the first place? Why does it always appear in confusing and unclear places? In the slightly modified [official documentation example](https://github.com/sveltejs/svelte/blob/5eb8641ac723a76111424d9805a3d29ba59d9fa9/sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md?plain=1#L43-L61) below, everything works fine and I don't understand what the warning means. Possibly related issues: https://github.com/sveltejs/svelte/issues/9857 https://github.com/sveltejs/svelte/issues/10905 ### Reproduction [Svelte5-REPL](https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAE42QQW7DIBBFrzJClQKq5STtzrUt5RxJFtieNKQ2IDNEqhzuXrATpeqqS_6f9xiY2En16Fixn5iWA7KC7axlGaNvmw7uij1hPDvjxzYlpWtHZak-6AP1SKD90ODooIIXR5KQi49UPeP9NoO3DN6PKb9DprnEZpLFAw-xLNdPtS4bT2Q0GN32qv2qJi6gqhOYy9x6d-Z3Mu9Rf9IZXmErwrxVapNtMfzDZix_oMb-JW09LWMXozRfxXtWAm432IT0gqUasfMtci4zaGaxjGNNBhsRyrWtf1uWbec4_upgOnVS2LGCRo_hGH4AKJ2IMpABAAA=) ### Logs _No response_ ### System Info ```shell svelte@5.0.0-next.148 ``` ### Severity annoyance