chore: only invoke useLiveData in root

This commit is contained in:
Aarnav Tale 2025-02-02 00:54:42 -05:00
parent 31ac25d510
commit 771b87ae41
No known key found for this signature in database
5 changed files with 0 additions and 10 deletions

View file

@ -11,7 +11,6 @@ import { loadContext } from '~/utils/config/headplane';
import { loadConfig } from '~/utils/config/headscale';
import { pull } from '~/utils/headscale';
import { getSession } from '~/utils/sessions.server';
import { useLiveData } from '~/utils/useLiveData';
import { initAgentSocket, queryAgent } from '~/utils/ws-agent';
import Tooltip from '~/components/Tooltip';
@ -56,7 +55,6 @@ export async function action({ request }: ActionFunctionArgs) {
}
export default function Page() {
useLiveData({ interval: 3000 });
const data = useLoaderData<typeof loader>();
return (