mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-07 13:11:49 +02:00
Prefetch user (#429)
This commit is contained in:
parent
37f777cace
commit
249376c43e
20 changed files with 220 additions and 181 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue