Fix scrolling being broken on some list pages - 1.179 🚀

This commit is contained in:
Brandon Presley 2023-11-12 22:35:55 +13:00
parent afed5f1d54
commit 92dd65ffee
7 changed files with 14 additions and 8 deletions

View File

@ -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 () => {

View File

@ -37,7 +37,8 @@ export default function PlanList() {
useFocusEffect(
useCallback(() => {
refresh(term);
}, [refresh, term])
// eslint-disable-next-line
}, [term])
);
const search = useCallback(

View File

@ -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) => {

View File

@ -86,7 +86,8 @@ export default function StartPlan() {
useCallback(() => {
settingsRepo.findOne({ where: {} }).then(setSettings);
refresh();
}, [refresh])
// eslint-disable-next-line
}, [])
);
const handleSubmit = async () => {

View File

@ -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) => {

View File

@ -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 {

View File

@ -1,6 +1,6 @@
{
"name": "massive",
"version": "1.178",
"version": "1.179",
"private": true,
"license": "GPL-3.0-only",
"scripts": {