fix: Correct incomplete $state initialization in multiple Svelte components and pages.
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
|
||||
// Reactive query
|
||||
const acoesQuery = useQuery(api.acoes.list, {});
|
||||
const acoes = $derived(acoesQuery.data || []);
|
||||
const loading = $derived(acoesQuery.isLoading);
|
||||
const error = $derived(acoesQuery.error?.message || null);
|
||||
let acoes = $derived(acoesQuery.data || []);
|
||||
let loading = $derived(acoesQuery.isLoading);
|
||||
let error = $derived(acoesQuery.error?.message || null);
|
||||
|
||||
// Modal state
|
||||
let showModal = $state(false);
|
||||
|
||||
Reference in New Issue
Block a user