61d9dfe127
* chore: simplify app dispatch and selector types with ts inference * update SearchModal to use new types inference
6 lines
261 B
TypeScript
6 lines
261 B
TypeScript
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux'
|
|
import { AppDispatch, AppState } from 'state'
|
|
|
|
export const useAppDispatch = () => useDispatch<AppDispatch>()
|
|
export const useAppSelector: TypedUseSelectorHook<AppState> = useSelector
|