fix: remove refetchOnFocus for routing-api (#4601)

This commit is contained in:
vignesh mohankumar 2022-09-09 18:35:12 -04:00 committed by GitHub
parent 7f4dbf9346
commit 99a7fb3383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,7 +45,6 @@ export function useRoutingAPITrade<TTradeType extends TradeType>(
const { isLoading, isError, data, currentData } = useGetQuoteQuery(queryArgs ?? skipToken, { const { isLoading, isError, data, currentData } = useGetQuoteQuery(queryArgs ?? skipToken, {
pollingInterval: ms`15s`, pollingInterval: ms`15s`,
refetchOnFocus: true,
}) })
const quoteResult: GetQuoteResult | undefined = useIsValidBlock(Number(data?.blockNumber) || 0) ? data : undefined const quoteResult: GetQuoteResult | undefined = useIsValidBlock(Number(data?.blockNumber) || 0) ? data : undefined