fix: make useLiveData a context that is pausable
This commit is contained in:
parent
98d02bb595
commit
c066b3064d
5 changed files with 89 additions and 61 deletions
|
|
@ -5,7 +5,6 @@ import type { LoadContext } from '~/server';
|
|||
import { ResponseError } from '~/server/headscale/api-client';
|
||||
import cn from '~/utils/cn';
|
||||
import log from '~/utils/log';
|
||||
import { useLiveData } from '~/utils/useLiveData';
|
||||
|
||||
export async function loader({
|
||||
request,
|
||||
|
|
@ -36,7 +35,6 @@ export async function loader({
|
|||
}
|
||||
|
||||
export default function Layout() {
|
||||
useLiveData({ interval: 3000 });
|
||||
const { healthy } = useLoaderData<typeof loader>();
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue