fix entity list unnecessary parameters

This commit is contained in:
dswbx
2025-01-17 13:43:45 +01:00
parent a723d6f618
commit c19d3b2d75
5 changed files with 48 additions and 18 deletions

View File

@@ -1,17 +1,18 @@
import { IconHome } from "@tabler/icons-react";
import { useEffect } from "react";
import { useAuth } from "ui/client";
import { useEffectOnce } from "ui/hooks/use-effect";
import { Empty } from "../components/display/Empty";
import { useBrowserTitle } from "../hooks/use-browser-title";
import * as AppShell from "../layouts/AppShell/AppShell";
import { useNavigate } from "../lib/routes";
export const Root = ({ children }) => {
const { verify } = useAuth();
const { verify, user } = useAuth();
useEffect(() => {
useEffectOnce(() => {
verify();
}, []);
}, [user?.id]);
return (
<AppShell.Root>