Compare commits
2 Commits
1.0.5
...
renovate/e
Author | SHA1 | Date | |
---|---|---|---|
b2492c2f4e | |||
365d7589b1 |
@@ -36,8 +36,8 @@ class ScanScreen extends HookConsumerWidget {
|
||||
|
||||
restartScan() async {
|
||||
try {
|
||||
final val = ref.refresh(_scanDocumentProvider);
|
||||
Logger.root.info("Load again startup result: $val");
|
||||
ref.invalidate(_scanDocumentProvider);
|
||||
Logger.root.info("Load again startup");
|
||||
} catch (e, s) {
|
||||
Logger.root.shout("Failed to try again startup loading! $e $s");
|
||||
}
|
||||
|
@@ -40,6 +40,15 @@ class ExpenseEditor extends HookConsumerWidget {
|
||||
|
||||
final (:pending, :snapshot, :hasError) = useAsyncTask();
|
||||
|
||||
// Force refresh of field if required
|
||||
final previousData = useState<BaseExpenseInfo?>(null);
|
||||
if (initialData != previousData.value) {
|
||||
previousData.value = initialData;
|
||||
labelController.text = initialData?.label ?? "";
|
||||
costController.text = initialData?.cost.toString() ?? "";
|
||||
timeController.value = initialData?.time ?? DateTime.now();
|
||||
}
|
||||
|
||||
// Clear cost value
|
||||
handleClearCost() {
|
||||
costController.text = "";
|
||||
|
1009
moneymgr_web/package-lock.json
generated
1009
moneymgr_web/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -36,7 +36,7 @@
|
||||
"@types/react": "^19.1.8",
|
||||
"@types/react-dom": "^19.1.6",
|
||||
"@vitejs/plugin-react": "^4.6.0",
|
||||
"eslint": "^9.26.0",
|
||||
"eslint": "^9.31.0",
|
||||
"eslint-plugin-react-dom": "^1.49.0",
|
||||
"eslint-plugin-react-hooks": "^5.2.0",
|
||||
"eslint-plugin-react-refresh": "^00.4.20",
|
||||
|
Reference in New Issue
Block a user