Private
Public Access
1
0

Fix $state runtime error: rename rune stores to .svelte.ts

$state runes only work in .svelte and .svelte.ts files. The toasts and
theme stores used $state in plain .ts files, which compiled in dev but
crashed in production SSR. Renamed and updated all imports.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Catherine Renelle
2026-02-26 01:33:15 -05:00
parent 1ec64e4ad5
commit 062832a1e3
9 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { fly } from 'svelte/transition';
import { getToasts, removeToast, type ToastType } from '$lib/stores/toasts.js';
import { getToasts, removeToast, type ToastType } from '$lib/stores/toasts.svelte.js';
const toasts = $derived(getToasts());