fix: Correct incomplete $state initialization in multiple Svelte components and pages.

This commit is contained in:
2025-12-02 19:18:53 -03:00
parent 4bd9e21748
commit 8a50fb6f61
99 changed files with 520 additions and 519 deletions

View File

@@ -67,10 +67,10 @@
}
}
const canAdd = $derived(!isAdding && newTodoText.trim().length > 0);
const isLoadingTodos = $derived(todosQuery.isLoading);
const todos = $derived(todosQuery.data ?? []);
const hasTodos = $derived(todos.length > 0);
let canAdd = $derived(!isAdding && newTodoText.trim().length > 0);
let isLoadingTodos = $derived(todosQuery.isLoading);
let todos = $derived(todosQuery.data ?? []);
let hasTodos = $derived(todos.length > 0);
</script>
<div class="p-4">