From 59a9f8da1568bc2d83e57e4632300bb681c42f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Gustavo?= <166467972+JoaoGustavo-dev@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:27:18 -0300 Subject: [PATCH] fix: fixing-patient-list --- susconecta/app/profissional/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/susconecta/app/profissional/page.tsx b/susconecta/app/profissional/page.tsx index a8ce5f2..8d0ff09 100644 --- a/susconecta/app/profissional/page.tsx +++ b/susconecta/app/profissional/page.tsx @@ -177,8 +177,8 @@ const ProfissionalPage = () => { } })(); return () => { mounted = false; }; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + // Re-run when user id becomes available so patients assigned to the logged-in doctor are loaded + }, [user?.id]); // Carregar perfil do médico correspondente ao usuário logado useEffect(() => {