fix: Correct incomplete $state initialization in multiple Svelte components and pages.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user