diff --git a/src/hooks/useAuth.tsx b/src/hooks/useAuth.tsx index 1126282..231e116 100644 --- a/src/hooks/useAuth.tsx +++ b/src/hooks/useAuth.tsx @@ -279,6 +279,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { if (cleanupFn) cleanupFn(); }); }; + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); // Limpeza periódica de usuários offline e listener de fechamento de janela @@ -330,6 +331,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { window.removeEventListener('beforeunload', handleBeforeUnload); }; } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [user?.id, authInitialized]); const signIn = async (email: string, password: string) => { @@ -410,6 +412,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { return {children}; } +// eslint-disable-next-line react-refresh/only-export-components export function useAuth() { const context = useContext(AuthContext); if (context === undefined) { diff --git a/src/hooks/useSessionLogs.tsx b/src/hooks/useSessionLogs.tsx index a9efa29..5f55df7 100644 --- a/src/hooks/useSessionLogs.tsx +++ b/src/hooks/useSessionLogs.tsx @@ -324,6 +324,7 @@ export const useSessionLogs = () => { } else if (!user && currentSessionId) { endSession(); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [user]); // Finalizar sessão quando a janela é fechada