From dc380dc371a8d27ebc97421330c4ed4136087626 Mon Sep 17 00:00:00 2001 From: Roshan Sharma Date: Sun, 10 Jan 2021 16:16:12 +0530 Subject: [PATCH] Home.tsx: Perform cleanup --- screens/Home.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/screens/Home.tsx b/screens/Home.tsx index d93a1e8..f42ac40 100644 --- a/screens/Home.tsx +++ b/screens/Home.tsx @@ -17,7 +17,6 @@ export default function HomeScreen() { >([]) useEffect(() => { - console.log('onFocus listener added to Home (should be seen once!') navigation.addListener('focus', updateList) AsyncStorage.getItem('@intro_shown').then((value) => { if (!value) navigation.navigate('Intro') @@ -26,7 +25,6 @@ export default function HomeScreen() { useFocusEffect( React.useCallback(() => { - console.log('onFocusEffect being called -', _update + Math.random()) db.transaction((tx) => { tx.executeSql(`SELECT * FROM credentials`, [], (t, { rows }) => { let results: any = rows @@ -42,7 +40,6 @@ export default function HomeScreen() { Children calling it triggers a re-render, which fetches fresh data. */ function updateList() { - console.log('Triggering update...') triggerUpdate(_update + 1) }