kimlimjustin / xplorer

Xplorer, a customizable, modern file manager
https://xplorer.space/
Apache License 2.0
4.87k stars 336 forks source link

refactor(redux, types): use typed dispatch and selector #301

Open curtisy1 opened 7 months ago

curtisy1 commented 7 months ago

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 and useAppSelector which are type-safe global wrappers for useDispatch and useSelector

vercel[bot] commented 7 months ago

@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.