Jokerz
Jokerz3y ago

How do we add settings in each query like before?

Since the new update, bee super confused. I used to do this, and can't recreate it now.
const {
data: traitz,
isLoading,
refetch: refetchTraitz,
} = trpc.useQuery(["trait.get-traits"], {
refetchOnWindowFocus: false,
enabled: !publicKey,
});
const {
data: traitz,
isLoading,
refetch: refetchTraitz,
} = trpc.useQuery(["trait.get-traits"], {
refetchOnWindowFocus: false,
enabled: !publicKey,
});
const {
data: traitz,
isLoading,
refetch: refetchTraitz,
} = trpc.trait.getTraits.useQuery();
const {
data: traitz,
isLoading,
refetch: refetchTraitz,
} = trpc.trait.getTraits.useQuery();
2 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Jokerz
JokerzOP3y ago
brilliant thanks!