diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-09-01 12:00:08 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-09-01 12:00:08 -0500 |
commit | bb51af5ae9c405faafad3b9685eef545c3437adb (patch) | |
tree | 0705cea86e68f223fd240aeabaf4aacb7d4ea43f /src/view/lib/navigation.ts | |
parent | 346385ce43b609df82a70a8cb038b6622c99c24e (diff) | |
download | voidsky-bb51af5ae9c405faafad3b9685eef545c3437adb.tar.zst |
Implement working screen-state management and remove extraneous loads
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]) -} |