Jokerz
Jokerz
Explore posts from servers
TtRPC
Created by Jokerz on 11/8/2022 in #❓-help
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();
3 replies