Open curtisy1 opened 7 months ago
This is recommended as per the redux toolkit quickstart https://redux-toolkit.js.org/tutorials/typescript#define-typed-hooks
Specifying the whole Typescript types for each selector is overkill and can easily be simplified
Introduce two new hooks, useAppDispatch and useAppSelector which are type-safe global wrappers for useDispatch and useSelector
useAppDispatch
useAppSelector
useDispatch
useSelector
@curtisy1 is attempting to deploy a commit to the Justin Maximillian Kimlim's projects Team on Vercel.
A member of the Team first needs to authorize it.
This is recommended as per the redux toolkit quickstart https://redux-toolkit.js.org/tutorials/typescript#define-typed-hooks
Motivation
Specifying the whole Typescript types for each selector is overkill and can easily be simplified
Changes
Introduce two new hooks,
useAppDispatch
anduseAppSelector
which are type-safe global wrappers foruseDispatch
anduseSelector