Fix useUserBet workaround

This commit is contained in:
James Grugett 2022-08-28 16:52:23 -05:00
parent f8888ab5e5
commit 5599e7c4b1

View File

@ -13,7 +13,7 @@ export const useUserBets = (userId: string) => {
{ subscribe: true, includeMetadataChanges: true },
// Temporary workaround for react-query bug:
// https://github.com/invertase/react-query-firebase/issues/25
{ cacheTime: 0 }
{ refetchOnMount: 'always' }
)
return result.data
}