Fix useUserBet workaround
This commit is contained in:
parent
f8888ab5e5
commit
5599e7c4b1
|
@ -13,7 +13,7 @@ export const useUserBets = (userId: string) => {
|
||||||
{ subscribe: true, includeMetadataChanges: true },
|
{ subscribe: true, includeMetadataChanges: true },
|
||||||
// Temporary workaround for react-query bug:
|
// Temporary workaround for react-query bug:
|
||||||
// https://github.com/invertase/react-query-firebase/issues/25
|
// https://github.com/invertase/react-query-firebase/issues/25
|
||||||
{ cacheTime: 0 }
|
{ refetchOnMount: 'always' }
|
||||||
)
|
)
|
||||||
return result.data
|
return result.data
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user