feat: optimize home screen data loading with pagination and refresh functionality

This commit is contained in:
imeepos
2026-01-26 17:33:21 +08:00
parent 23fae07a58
commit 818f6e8591
6 changed files with 391 additions and 107 deletions

View File

@@ -7,7 +7,7 @@ import { type ApiError } from '@/lib/types'
import { OWNER_ID } from '@/lib/auth'
import { handleError } from './use-error'
type ListCategoryTemplatesParams = Omit<ListTemplatesInput, 'ownerId'>
type ListCategoryTemplatesParams = Partial<Omit<ListTemplatesInput, 'ownerId'>>
interface UseCategoryTemplatesOptions {
categoryId?: string