T
TanStack3y ago
fascinating-indigo

How can I prevent refetching

Hi guys I am using the tanstack with trpc but currently it refetches if I revisit the page, is there a way to prevent that? Currently fetching like this:
const Game = () => {
const { data: movies } = trpc.movie.getAll.useQuery();
const { data: possibleAnswers } = trpc.movie.getThree.useQuery();
const Game = () => {
const { data: movies } = trpc.movie.getAll.useQuery();
const { data: possibleAnswers } = trpc.movie.getThree.useQuery();
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?