2022-09-02 02:38:09 +00:00
|
|
|
import { usePrefetchUserBetContracts } from './use-contracts'
|
|
|
|
import { usePrefetchUserBets } from './use-user-bets'
|
2022-08-28 23:03:00 +00:00
|
|
|
|
|
|
|
export function usePrefetch(userId: string | undefined) {
|
|
|
|
const maybeUserId = userId ?? ''
|
2022-09-02 02:38:09 +00:00
|
|
|
return Promise.all([
|
|
|
|
usePrefetchUserBets(maybeUserId),
|
|
|
|
usePrefetchUserBetContracts(maybeUserId),
|
|
|
|
])
|
2022-08-28 23:03:00 +00:00
|
|
|
}
|