useAppDispatch()
↔ TS typed version of useDispatch() || recommended but pointless
import { useDispatch } from "react-redux"
import type { AppDispatch } from "../state/store"
export const useAppDispatch: () => AppDispatch = useDispatch
References
useDispatch()
↔ redux hook to manually dispatch action creator. replace byuseAppDispatch()
for TS