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

@@ -16,13 +16,13 @@
const { children }: { children: Snippet } = $props();
const currentPath = $derived(page.url.pathname);
let currentPath = $derived(page.url.pathname);
const currentUser = useQuery(api.auth.getCurrentUser, {});
const convexClient = useConvexClient();
// Função para obter a URL do avatar/foto do usuário
const avatarUrlDoUsuario = $derived(() => {
let avatarUrlDoUsuario = $derived(() => {
if (!currentUser.data) return null;
// Prioridade: fotoPerfilUrl > avatar > fallback com nome