Agents & OrchestrationSûr8080/100
Table State (TanStack) — Svelte Table
Read and control Table v9 state in svelte. Use for tracked reads, subscriptions, controlled slices, and framework-specific reactive boundaries.
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 table-state__tanstack-table__packages-svelte-table-skills-f22c0bc6d76aTanStack
TanStack/table
Contenu à copier
---
name: table-state
description: Read and control Table v9 state in svelte. Use for tracked reads, subscriptions, controlled slices, and framework-specific reactive boundaries.
metadata:
origin: TanStack
type: framework
library: '@tanstack/svelte-table'
framework: svelte
library_version: '9.3.1'
requires:
- '@tanstack/table-core#table-state'
sources:
- TanStack/table:docs/framework/svelte/guide/table-state.md
- TanStack/table:docs/framework/svelte/guide/pagination.md
- TanStack/table:examples/svelte/basic-external-state
- TanStack/table:packages/svelte-table/src/createTable.svelte.ts
- TanStack/table:packages/svelte-table/src/createTableState.svelte.ts
---
# Svelte table state
Before starting, run `intent load @tanstack/table-core#table-state` for shared ownership, initialization, updates, and resets.
## Read reactive state
In Svelte 5, `table.atoms.<slice>.get()`, `table.store.get()`, and Table API reads track dependencies inside templates, `$derived`, `$derived.by`, or `$effect`. Outside those contexts they return snapshots. Prefer a slice read; a whole-store read reruns for every registered state change.
`createTable` and `createAppTable` take only options. There is no selected `table.state`, `subscribeTable`, or `SubscribeSource`. Use native `$derived` projections.
## Control a slice
Keep features and columns stable. Expose changing data and controlled runes through getters, and resolve both forms of `Updater`:
```svelte
<script lang="ts">
import {
createTable,
rowPaginationFeature,
tableFeatures,
type PaginationState,
} from '@tanstack/svelte-table'
const features = tableFeatures({ rowPaginationFeature })
const columns = [{ accessorKey: 'name' }]
let data = $state([{ name: 'Ada' }])
let pagination = $state<PaginationState>({ pageIndex: 0, pageSize: 20 })
const table = createTable({
features,
columns,
get data() {
return data
},
state: {
get pagination() {
return pagination
},
},
onPaginationChange: (next) => {
pagination = typeof next === 'function' ? next(pagination) : next
},
})
const pageSize = $derived(table.atoms.pagination.get().pageSize)
</script>
<button onclick={() => table.setPageSize(50)}>{pageSize} rows per page</button>
```
`createTableState` provides an updater-compatible getter/setter pair when repeating this wiring. For raw external atoms consumed outside table UI, use `useSelector` from `@tanstack/svelte-store`; table UI uses the rune-aware `table.atoms` wrappers.
For `createTableState`, external atoms, broad invalidation, or a page index overwritten by automatic reset, read [reactivity details](references/reactivity.md). For changes to pagination processing or reset policy, run `intent load @tanstack/table-core#table-features` and read its pagination reference.
## API discovery
Inspect `node_modules/@tanstack/svelte-table/dist/createTable.svelte.d.ts`, `createTableState.svelte.d.ts`, and `createTableHook.svelte.d.ts` for the installed contracts.Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Table State (TanStack) — Svelte Table
Applique les pratiques du skill table-state__tanstack-table__packages-svelte-table-skills-f22c0bc6d76a.
Comment utiliser Table State (TanStack) — Svelte Table
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 Table State (TanStack) — Svelte Table
Dis simplement à ton agent quelque chose comme :
Applique le skill table-state__tanstack-table__packages-svelte-table-skills-f22c0bc6d76a à cette tâche
Utilise table-state__tanstack-table__packages-svelte-table-skills-f22c0bc6d76a pour améliorer cette implémentation
Passe en revue ce sujet avec table-state__tanstack-table__packages-svelte-table-skills-f22c0bc6d76a
Skills liés à Table State (TanStack) — Svelte Table
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.