teamdigitale/italia-app

View on GitHub
ts/store/hooks.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {
  TypedUseSelectorHook,
  useDispatch,
  useSelector,
  useStore
} from "react-redux";
import { AppDispatch } from "../App";
import { GlobalState } from "./reducers/types";

export const useIODispatch = () => useDispatch<AppDispatch>();
export const useIOSelector: TypedUseSelectorHook<GlobalState> = useSelector;
export const useIOStore = () => useStore<GlobalState>();