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

@ -28,8 +28,8 @@ import { useTouchBeacon } from "./poll/use-touch-beacon";
import { UserAvatarProvider } from "./poll/user-avatar";
import VoteIcon from "./poll/vote-icon";
import { usePoll } from "./poll-context";
import { useSession } from "./session";
import Sharing from "./sharing";
import { useUser } from "./user-provider";
const PollPage: NextPage = () => {
const { poll, urlId, admin } = usePoll();
@ -40,7 +40,7 @@ const PollPage: NextPage = () => {
const { t } = useTranslation("app");
const session = useSession();
const session = useUser();
const queryClient = trpc.useContext();
const plausible = usePlausible();