Skip to content

Commit

Permalink
allow ssr on FetchCurrenciesQuery and FeesLazyQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMahe committed Feb 21, 2024
1 parent 271468d commit 3d9d2e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions components/Filter/FilterBy/Price.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ const FilterByPrice: FC<Props> = ({

const filterResult = watch()

const { data: currencyData } = useFetchCurrenciesQuery({
ssr: false,
})
const { data: currencyData } = useFetchCurrenciesQuery()
const currencies = useMemo(
() =>
filterResult.chains.length > 0
Expand Down
4 changes: 1 addition & 3 deletions hooks/useFees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ export default function useFees({
quantity: BigNumber
debounceTimeout?: number
}) {
const [fetchFees, { data, previousData }] = useFeesLazyQuery({
ssr: false,
})
const [fetchFees, { data, previousData }] = useFeesLazyQuery()
const [loading, setLoading] = useState(false) // manual state to tell if the fetch is in progress. Cannot use the loading param from useFeesLazyQuery because of the debounce feature
useEffect(() => {
if (currencyId === undefined) return
Expand Down

0 comments on commit 3d9d2e9

Please sign in to comment.