From 489f7f48dd9be24c61009eca103687b6a197c3c7 Mon Sep 17 00:00:00 2001 From: mdmahendri Date: Mon, 15 Dec 2025 08:50:11 +0700 Subject: [PATCH] docs: clarify $state export warning in universal reactivity tutorial --- .../01-svelte/02-reactivity/06-universal-reactivity/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/svelte.dev/content/tutorial/01-svelte/02-reactivity/06-universal-reactivity/index.md b/apps/svelte.dev/content/tutorial/01-svelte/02-reactivity/06-universal-reactivity/index.md index 2229aa6741..de84a9feb3 100644 --- a/apps/svelte.dev/content/tutorial/01-svelte/02-reactivity/06-universal-reactivity/index.md +++ b/apps/svelte.dev/content/tutorial/01-svelte/02-reactivity/06-universal-reactivity/index.md @@ -26,4 +26,4 @@ Then, update the import declaration in `Counter.svelte`: Now, when you click any button, all three update simultaneously. -> [!NOTE] You cannot export a `$state` declaration from a module if the declaration is reassigned (rather than just mutated), because the importers would have no way to know about it. +> [!NOTE] You cannot export a `$state` declaration from a module if the declaration is reassigned (rather than just mutated), because the importers would have no way to know about it and attempting to do so would cause a compilation error since imports cannot be reassigned in JavaScript modules.