Fix dependency of useEffect in BetsList (#379)
* Fix dependency of useEffect in BetsList
* Revert "Fix dependency of useEffect in BetsList"
This reverts commit 077b211f22
.
* Disable linter for BetsList useEffect deps
* Add hideBetsBefore to useEffect dependencies
* Fix formatting
This commit is contained in:
parent
9cb24c9f3c
commit
30adb5e1f8
|
@ -82,7 +82,8 @@ export function BetsList(props: { user: User; hideBetsBefore?: number }) {
|
|||
disposed = true
|
||||
}
|
||||
}
|
||||
}, [allBets])
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [allBets, hideBetsBefore])
|
||||
|
||||
const getTime = useTimeSinceFirstRender()
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user