Agents & OrchestrationSûr100100/100
Client Vs Server (TanStack)
Choose client or server ownership for filtering, grouping, sorting, expanding, and pagination in TanStack Table v9. Load for manual* flags, mixed pipelines, server counts, or deciding which dataset each row-model stage receives.
ou envoie-le directement à ton agent.
Installer dans ton projet
$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs client-vs-server__tanstack-table__packages-table-core-skills-404e8a9f99feTanStack
TanStack/table
Contenu à copier
---
name: client-vs-server
description: >
Choose client or server ownership for filtering, grouping, sorting, expanding, and pagination in TanStack Table v9. Load for manual* flags, mixed pipelines, server counts, or deciding which dataset each row-model stage receives.
metadata:
origin: TanStack
type: sub-skill
library: '@tanstack/table-core'
library_version: '9.2.4'
requires: ['core', 'table-features']
sources:
- 'TanStack/table:docs/guide/row-models.md'
- 'TanStack/table:packages/table-core/src/core/row-models/coreRowModelsFeature.utils.ts'
- 'TanStack/table:examples/react/with-tanstack-query'
---
This skill builds on `core` and `table-features`. Read them first for the model pipeline and plugin slots.
## Setup
```ts
import {
rowPaginationFeature,
rowSortingFeature,
tableFeatures,
} from '@tanstack/table-core'
export const features = tableFeatures({
rowSortingFeature,
rowPaginationFeature,
})
export const serverOptions = {
manualSorting: true,
manualPagination: true,
rowCount: 12_450,
} as const
```
## Core Patterns
### Client owns the complete pipeline
```ts
const features = tableFeatures({
columnFilteringFeature,
filteredRowModel: createFilteredRowModel(),
rowSortingFeature,
sortedRowModel: createSortedRowModel(),
rowPaginationFeature,
paginatedRowModel: createPaginatedRowModel(),
})
```
Pass the full client dataset so each stage can process all rows.
### Server owns processing
```ts
const options = {
data: serverPage.rows,
manualFiltering: true,
manualSorting: true,
manualPagination: true,
rowCount: serverPage.total,
}
```
Put controlled filter, sorting, and pagination state into the request/query key.
## Common Mistakes
### [CRITICAL] Treating manual flags as requests
Wrong:
```ts
const options = { manualSorting: true, data: unsortedRows }
```
Correct:
```ts
const sortedPage = await fetchPage({ sorting })
const options = { manualSorting: true, data: sortedPage.rows }
```
`manualSorting` only bypasses client sorting; it never calls a backend.
Source: `packages/table-core/src/features/row-sorting/rowSortingFeature.types.ts`
### [HIGH] Expecting manual pagination to slice
Wrong:
```ts
const options = { data: allRows, manualPagination: true }
```
Correct:
```ts
const page = await fetchPage({ pageIndex, pageSize })
const options = {
data: page.rows,
manualPagination: true,
rowCount: page.rowCount,
}
```
Manual pagination assumes `data` already represents the intended page. Pass the stable page result directly. If the application deliberately performs custom local slicing instead, derive it with the framework's memo/computed primitive and keep the reference stable until its actual inputs change.
Source: `docs/framework/react/guide/pagination.md#manual-server-side-pagination`
### [HIGH] Sorting only the loaded page accidentally
Wrong:
```ts
const options = {
data: serverPage.rows,
manualPagination: true,
manualSorting: false,
}
```
Correct:
```ts
const options = {
data: serverPage.rows,
manualPagination: true,
manualSorting: true,
}
```
Client sorting can see only loaded rows, so it cannot produce database-wide order.
Source: `docs/guide/row-models.md`
### [HIGH] Recreating processed data or columns inline
Wrong:
```ts
const options = {
data: allRows.filter(matchesFilters).slice(pageStart, pageEnd),
columns: makeColumns(),
}
```
Correct:
```ts
const processedRows = pageResult.rows
const columns = sharedColumns
const options = { data: processedRows, columns }
```
`data` and `columns` are model inputs. Keep both references stable between meaningful changes with module constants, state, or the adapter's memo/computed primitive; otherwise Table repeatedly invalidates row and column models and some adapters can enter render loops. “Manual” describes processing ownership, not permission to derive new arrays inside table options.
Source: `docs/guide/data.md`
## API Discovery
Inspect `node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.d.ts` for pipeline order and each feature's `.types.d.ts` for its `manual*` contract.Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Client Vs Server (TanStack)
Applique les pratiques du skill client-vs-server__tanstack-table__packages-table-core-skills-404e8a9f99fe.
Comment utiliser Client Vs Server (TanStack)
1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.
Déclencheurs pour Client Vs Server (TanStack)
Dis simplement à ton agent quelque chose comme :
Applique le skill client-vs-server__tanstack-table__packages-table-core-skills-404e8a9f99fe à cette tâche
Utilise client-vs-server__tanstack-table__packages-table-core-skills-404e8a9f99fe pour améliorer cette implémentation
Passe en revue ce sujet avec client-vs-server__tanstack-table__packages-table-core-skills-404e8a9f99fe
Skills liés à Client Vs Server (TanStack)
Acceleration (Microsoft)
Compare synthetic acceleration options and clearly separate scenario value from forecast commitments.Account Overview (Microsoft)
Create a synthetic Acme account overview and identify evidence that merits seller attention.Acroform Writer (Microsoft)
Use this skill whenever the user wants values written INTO an existing PDF form that lives in the connected SharePoint knowledge source — filling out, completing, populating, or submitting a fillable PDF (application, intake sheet, contract, government form) from data they supply, a spreadsheet row, or the conversation. Triggers include "fill out the job application form", "complete the intake form for [person]", "populate our standard NDA template", and "make this ready to send / non-editable" (flatten). The source form should be found via knowledge search; only ask the user to upload it if knowledge search turns up nothing plausible. different task), and do NOT use it on scanned/image-only PDFs that have no real fillable fields — those need OCR or manual overlay instead, which this skill explicitly detects and reports rather than silently failing.