From 3eaa56f0306ead818f64c3d99fc6d230d9b970a4 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Wed, 18 Feb 2026 20:42:03 -0500 Subject: HERE WE GO, HERE WE GO, HERE WE GO --- jb-ui/src/hooks.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 jb-ui/src/hooks.ts (limited to 'jb-ui/src/hooks.ts') diff --git a/jb-ui/src/hooks.ts b/jb-ui/src/hooks.ts new file mode 100644 index 0000000..02ff1b6 --- /dev/null +++ b/jb-ui/src/hooks.ts @@ -0,0 +1,11 @@ +// This file serves as a central hub for re-exporting pre-typed Redux hooks. +import { useDispatch, useSelector, TypedUseSelectorHook } from 'react-redux' +import type { AppDispatch, RootState } from '@/store' + + +// Use throughout your app instead of plain `useDispatch` and `useSelector` +// export const useAppDispatch: () => AppDispatch = useDispatch.withTypes() +export const useAppSelector: TypedUseSelectorHook = useSelector.withTypes() + +export const useAppDispatch: () => AppDispatch = useDispatch +// export const useAppSelector: TypedUseSelectorHook = useSelector -- cgit v1.2.3