Kantongku: hardening - ErrorBoundary + catch semua load async (anti force-close)
This commit is contained in:
@@ -69,9 +69,7 @@ export function SavingsScreen() {
|
||||
useFocusEffect(
|
||||
useCallback(() => {
|
||||
let active = true;
|
||||
load().then(() => {
|
||||
if (!active) return;
|
||||
});
|
||||
load().catch(() => {});
|
||||
return () => {
|
||||
active = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user