Fix infinite refreshing on first load of StartPlan

This commit is contained in:
Brandon Presley 2022-11-01 12:29:54 +13:00
parent 1a53fa324b
commit 3c4bba3f85
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ export default function StartPlan() {
useFocusEffect(
useCallback(() => {
refresh().then(newCounts => select(0, newCounts))
}, [refresh, select]),
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [refresh]),
)
const handleSubmit = async () => {