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