From 92dd65ffee4937b7db493fe79f44e8f53eb11633 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Sun, 12 Nov 2023 22:35:55 +1300 Subject: [PATCH] =?UTF-8?q?Fix=20scrolling=20being=20broken=20on=20some=20?= =?UTF-8?q?list=20pages=20-=201.179=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GraphsList.tsx | 3 ++- PlanList.tsx | 3 ++- SetList.tsx | 4 +++- StartPlan.tsx | 3 ++- WeightList.tsx | 3 ++- android/app/build.gradle | 4 ++-- package.json | 2 +- 7 files changed, 14 insertions(+), 8 deletions(-) diff --git a/GraphsList.tsx b/GraphsList.tsx index db50131..e09b4b0 100644 --- a/GraphsList.tsx +++ b/GraphsList.tsx @@ -38,7 +38,8 @@ export default function GraphsList() { useCallback(() => { refresh(term); settingsRepo.findOne({ where: {} }).then(setSettings); - }, [refresh, term]) + // eslint-disable-next-line + }, [term]) ); const next = useCallback(async () => { diff --git a/PlanList.tsx b/PlanList.tsx index ae09b1e..c3591c0 100644 --- a/PlanList.tsx +++ b/PlanList.tsx @@ -37,7 +37,8 @@ export default function PlanList() { useFocusEffect( useCallback(() => { refresh(term); - }, [refresh, term]) + // eslint-disable-next-line + }, [term]) ); const search = useCallback( diff --git a/SetList.tsx b/SetList.tsx index 14ee70d..dde6219 100644 --- a/SetList.tsx +++ b/SetList.tsx @@ -44,9 +44,11 @@ export default function SetList() { useFocusEffect( useCallback(() => { + console.log(`${SetList.name}.focus:`, { term }); settingsRepo.findOne({ where: {} }).then(setSettings); reset(term); - }, [reset, term]) + // eslint-disable-next-line + }, [term]) ); const search = (value: string) => { diff --git a/StartPlan.tsx b/StartPlan.tsx index e1c3a96..d067152 100644 --- a/StartPlan.tsx +++ b/StartPlan.tsx @@ -86,7 +86,8 @@ export default function StartPlan() { useCallback(() => { settingsRepo.findOne({ where: {} }).then(setSettings); refresh(); - }, [refresh]) + // eslint-disable-next-line + }, []) ); const handleSubmit = async () => { diff --git a/WeightList.tsx b/WeightList.tsx index 567f006..f9b7f14 100644 --- a/WeightList.tsx +++ b/WeightList.tsx @@ -51,7 +51,8 @@ export default function WeightList() { useCallback(() => { settingsRepo.findOne({ where: {} }).then(setSettings); reset(term); - }, [term, reset]) + // eslint-disable-next-line + }, [term]) ); const search = (value: string) => { diff --git a/android/app/build.gradle b/android/app/build.gradle index 232a09d..d90fecf 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -85,8 +85,8 @@ android { applicationId "com.massive" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 36204 - versionName "1.178" + versionCode 36205 + versionName "1.179" } signingConfigs { release { diff --git a/package.json b/package.json index ad57ca2..f4d8b30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "massive", - "version": "1.178", + "version": "1.179", "private": true, "license": "GPL-3.0-only", "scripts": {