12 lines
280 B
TypeScript
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,
|
|
})
|
|
}
|