Mastermindzh 3cb1759648 - Updated to React 18
- Updated for public release
  - Git was reset for privacy reasons
2022-06-27 16:41:03 +02:00

7 lines
350 B
TypeScript

import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';
import type { RootState, AppDispatch } from './store';
// Use throughout your app instead of plain `useDispatch` and `useSelector`
export const useAppDispatch = () => useDispatch<AppDispatch>();
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;