This project is a simple example of the architecture in TanStack Query.
├ domain # Manage the data structures and types used within the application.
├ pages
├ service # Manage the logic related to API communication.
| └ post # Divide directories for each resource.
| ├ function.ts # Data fetching and updating.
| ├ index.ts # Manage custom hooks that wrap TanStack Query's API.
| ├ key.ts # Manage the factory functions for queryKey.
| ├ selector.ts # Manage the data transformation functions used in the select option.
| └ type.ts # Manage the type definitions associated with API communication.