2022-09-01 04:59:58 +00:00
|
|
|
import { prefetchUserBetContracts } from './use-contracts'
|
|
|
|
import { prefetchPortfolioHistory } from './use-portfolio-history'
|
|
|
|
import { prefetchUserBets } from './use-user-bets'
|
2022-08-28 23:03:00 +00:00
|
|
|
|
|
|
|
export function usePrefetch(userId: string | undefined) {
|
|
|
|
const maybeUserId = userId ?? ''
|
|
|
|
|
2022-09-01 04:59:58 +00:00
|
|
|
prefetchUserBets(maybeUserId)
|
|
|
|
prefetchUserBetContracts(maybeUserId)
|
|
|
|
prefetchPortfolioHistory(maybeUserId, 'weekly')
|
2022-08-28 23:03:00 +00:00
|
|
|
}
|