You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
345 B
6 lines
345 B
1 year ago
|
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
|