mars-v2-frontend/src/hooks/useMarketBorrowings.tsx

12 lines
280 B
TypeScript

import useSWR from 'swr'
import getMarketBorrowings from 'api/markets/getMarketBorrowings'
export default function useMarketBorrowings() {
return useSWR(`marketBorrowings`, getMarketBorrowings, {
fallbackData: [],
suspense: false,
revalidateOnFocus: false,
})
}