T
tRPC

How do we add settings in each query like before?

How do we add settings in each query like before?

JJokerz11/8/2022
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();
UUUnknown User11/8/2022
Message Not Public
Sign In & Join Server To View
JJokerz11/8/2022
brilliant thanks!

Looking for more? Join the community!

T
tRPC

How do we add settings in each query like before?

Join Server