Authentication check every click
Why that always that i click on screen the 'me' request is being done?

/auth/me/auth/me/auth/meexport default function App() {
const location = useLocation();
const navigate = useNavigate();
const excludedPaths = useMemo(() => ({
exact: ['/', '/login', ],
prefixes: ['/blog', ]
}), []);
const isPublicRoute = useMemo(() => {
return excludedPaths.exact.includes(location.pathname) ||
excludedPaths.prefixes.some(prefix => location.pathname.startsWith(prefix));
}, [location.pathname, excludedPaths]);
// Always call useAuth, but ignore its data for public routes
const { data: user } = useAuth();
const effectiveUser = isPublicRoute ? null : user;