mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
7 lines
350 B
TypeScript
7 lines
350 B
TypeScript
import type { RootState, AppDispatch } from "./store";
|
|
import { TypedUseSelectorHook, useDispatch, useSelector } from "react-redux";
|
|
|
|
// Use throughout your app instead of plain `useDispatch` and `useSelector`
|
|
export const useAppDispatch = () => useDispatch<AppDispatch>();
|
|
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;
|