Prefetch user (#429)

This commit is contained in:
Luke Vella 2023-01-23 14:19:17 +00:00 committed by GitHub
parent 37f777cace
commit 249376c43e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 220 additions and 181 deletions

View file

@ -12,10 +12,10 @@ import { trpc } from "../utils/trpc";
import { EmptyState } from "./empty-state";
import LoginForm from "./login-form";
import { UserDetails } from "./profile/user-details";
import { useSession } from "./session";
import { useUser } from "./user-provider";
export const Profile: React.VoidFunctionComponent = () => {
const { user } = useSession();
const { user } = useUser();
const { dayjs } = useDayjs();
const { t } = useTranslation("app");