Files
expo-popcore-app/hooks/index.ts
imeepos 23fae07a58 feat: add useCategoriesWithTags hook and associated store for category management
- 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.
2026-01-26 17:05:44 +08:00

19 lines
1.2 KiB
TypeScript

export { useActivates } from './use-activates'
export { useCategories } from './use-categories'
export { useCategoriesWithTags } from './use-categories-with-tags'
export { useCategoryTemplates } from './use-category-templates'
export { useTemplateActions } from './use-template-actions'
export { useTemplates, type TemplateDetail } from './use-templates'
export { useTemplateDetail, type TemplateDetail as TemplateDetailType } from './use-template-detail'
export { useTemplateGenerations, type TemplateGeneration } from './use-template-generations'
export { useDeleteGeneration, useBatchDeleteGenerations } from './use-template-generation-actions'
export { useSearchHistory } from './use-search-history'
export { useTags } from './use-tags'
export { useDebounce } from './use-debounce'
export { useWorksSearch } from './use-works-search'
export { useChangePassword } from './use-change-password'
export { useUpdateProfile } from './use-update-profile'
export { useTemplateFilter, type UseTemplateFilterOptions, type UseTemplateFilterReturn } from './use-template-filter'
export { useStickyTabs, type UseStickyTabsReturn } from './use-sticky-tabs'
export { useTabNavigation, type Category, type UseTabNavigationOptions, type UseTabNavigationReturn } from './use-tab-navigation'