Fix infinite refreshing on first load of StartPlan
This commit is contained in:
parent
1a53fa324b
commit
3c4bba3f85
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user