From bb51af5ae9c405faafad3b9685eef545c3437adb Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 1 Sep 2022 12:00:08 -0500 Subject: Implement working screen-state management and remove extraneous loads --- src/view/lib/navigation.ts | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/view/lib/navigation.ts (limited to 'src/view/lib/navigation.ts') diff --git a/src/view/lib/navigation.ts b/src/view/lib/navigation.ts deleted file mode 100644 index 2024918e7..000000000 --- a/src/view/lib/navigation.ts +++ /dev/null @@ -1,12 +0,0 @@ -import {useEffect} from 'react' -import {useStores} from '../../state' - -type CB = () => void -/** - * This custom effect hook will trigger on every "navigation" - * Use this in screens to handle any loading behaviors needed - */ -export function useLoadEffect(cb: CB, deps: any[] = []) { - const store = useStores() - useEffect(cb, [store.nav.tab, ...deps]) -} -- cgit 1.4.1