diff options
Diffstat (limited to 'src/view/lib/navigation.ts')
-rw-r--r-- | src/view/lib/navigation.ts | 12 |
1 files changed, 0 insertions, 12 deletions
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]) -} |