Scheduling infrastructure for absolutely everyone.
fix: prevent refetching country (#7622)
Udit Takkard80581ad5845
diff --git a/packages/ui/form/PhoneInput.tsx b/packages/ui/form/PhoneInput.tsxindex 8f958d597bd..c66fdb29220 100644--- a/packages/ui/form/PhoneInput.tsx+++ b/packages/ui/form/PhoneInput.tsx@@ -36,7 +36,10 @@ function PhoneInput({ name, className = "", onChange, ...rest }: PhoneInputPropsconst useDefaultCountry = () => {const [defaultCountry, setDefaultCountry] = useState<Country>("US");- const query = trpc.viewer.public.countryCode.useQuery(undefined, {+ trpc.viewer.public.countryCode.useQuery(undefined, {+ refetchOnWindowFocus: false,+ refetchOnReconnect: false,+ retry: false,onSuccess: (data) => {if (isSupportedCountry(data?.countryCode)) {setDefaultCountry(data.countryCode as Country);