DataTableReferencia de API
Módulo servidor
parseTableSearchParams, readFilter, readFilterList y MAX_PAGE_SIZE.
@fesa/components/datatable/server es importable en Server Components y actions sin arrastrar nada de cliente:
| Export | Firma | Qué hace |
|---|---|---|
parseTableSearchParams | (searchParams, { defaultPageSize?, paramPrefix? }) | searchParams de la page → DataTableFetchParams. Acota pageSize a 100. |
readFilter | (searchParams, key, legacyKeys?) | Un filtro (o undefined), aceptando la clave legacy. |
readFilterList | (searchParams, key, legacyKeys?) | Lista separada por comas → string[]. |
MAX_PAGE_SIZE | 100 | El techo global de página. El take de Prisma nunca recibe más. |
PageSearchParams / LegacyFilterKeys | tipos | Record<string, string | string[] | undefined> / Record<string, string>. |