♻️ Replace useContext with useUtils

This commit is contained in:
Luke Vella 2023-11-04 17:36:20 +00:00
parent e792a2aaeb
commit fca8948ea2
9 changed files with 12 additions and 12 deletions

View file

@ -60,7 +60,7 @@ export const CreatePoll: React.FunctionComponent = () => {
useUnmount(clear);
const posthog = usePostHog();
const queryClient = trpc.useContext();
const queryClient = trpc.useUtils();
const createPoll = trpc.polls.create.useMutation();
return (