This repository has been archived by the owner on May 15, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(redux): add API query for 'TopBlocked' using Redux Toolkit Query
## what - add API query for 'TopBlocked' using Redux Toolkit Query - Query - GET queries/topBlocked - fetch data from NextJS API url '/api/queries/topBlocked' - export prebuilt React hook 'useGetTopBlockedQueriesQuery ' ## how - https://redux-toolkit.js.org/rtk-query/overview - https://redux-toolkit.js.org/rtk-query/usage/queries - https://redux-toolkit.js.org/rtk-query/usage/code-splitting ## why - Easy way to manage fetching data from API, etc - Less overhead to manage the code to handle these operations - most of the work is done for you ## where - ./src/redux/Queries/TopQueries.ts ## usage
- Loading branch information