table-features

Registers TanStack Table v9 feature plugins, row models, and function registries in prerequisite order.

28.4k|3.6k|Updated Oct 20, 2016
One-click install
npx skills add https://github.com/TanStack/table --skill table-features
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: table-features
Source: https://github.com/TanStack/table/tree/main/packages/table-core/skills/table-features
Command: npx skills add https://github.com/TanStack/table --skill table-features

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @tanstack/table-core.

What problem does it solve?

TanStack Table v9 gates optional state slices and instance APIs behind explicitly registered features, so calling an API like setSorting without registering rowSortingFeature fails. This Skill guides correct registration of tableFeatures, create*RowModel factories, and filter/sort/aggregation function registries in the required prerequisite order.

Core Features & Use Cases

  • Feature Registration: Compose tableFeatures with plugins like columnFilteringFeature, rowSortingFeature, and rowAggregationFeature so dependent slots and typed APIs become available.
  • Row Model Factories: Wire createFilteredRowModel and createSortedRowModel only after their prerequisite features are registered.
  • Function Registries: Register named filterFns, sortFns, and aggregationFns under conventional keys so string names and 'auto' resolution work.
  • Use Case: When a table option or instance API appears missing, load this Skill to identify which feature plugin or slot prerequisite must be registered instead of defaulting to stockFeatures.

Quick Start

Ask the AI to configure TanStack Table v9 features for sorting and filtering with the correct row models and function registries.

Frequently Asked Questions about table-features

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I register features in TanStack Table v9?

Call tableFeatures with the feature plugins you need, such as rowSortingFeature or columnFilteringFeature, plus any dependent slots like createSortedRowModel(). The inferred type then gates which table options and instance APIs are available.

Why is table.setSorting not working in TanStack Table v9?

setSorting is unavailable because rowSortingFeature was not registered. Optional feature state and APIs are installed only when their feature is passed to tableFeatures, so add rowSortingFeature to fix it.

Should I use stockFeatures or explicit tableFeatures?

Prefer explicit tableFeatures with only the plugins you need. stockFeatures registers every stock plugin and processing slot, defeating v9's tree-shaking, so reserve it for kitchen-sink demos or temporary migration.

How do I register custom filter, sort, and aggregation functions?

Register them as feature slots: filterFns requires columnFilteringFeature, sortFns requires rowSortingFeature, and aggregationFns requires rowAggregationFeature. Import individual built-ins like filterFn_includesString and register them under conventional keys for typed string names and 'auto' resolution.

Why does createSortedRowModel fail without rowSortingFeature?

The sortedRowModel slot has a prerequisite on rowSortingFeature, defined in FeatureSlotPrereqs. tableFeatures checks slot prerequisites, so you must register the feature before its dependent row model factory.