- Implemented useCategoriesWithTags hook to fetch categories with tags. - Created zustand store for managing categories and tags state. - Added error handling and loading states for improved user experience. test: add comprehensive tests for useCategoryTemplates hook - Developed unit tests for useCategoryTemplates to ensure correct functionality. - Included tests for loading states, error handling, pagination, and category ID changes. - Verified that templates are fetched and merged correctly based on category ID. feat: create useCategoryTemplates hook for managing category templates - Introduced useCategoryTemplates hook to fetch templates based on category ID. - Implemented pagination and loading states for template fetching. - Added refetch and loadMore functionalities to enhance data retrieval.
1.2 KiB
1.2 KiB