global-filtering
Apply globalFilter across eligible columns with globalFilteringFeature, columnFilteringFeature, filteredRowModel, globalFilterFn, and manual server filtering. Load when columns unexpectedly participate or a global filter changes state without changing rows.
How do I install this agent skill?
npx skills add https://github.com/tanstack/table --skill global-filteringIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides technical documentation and code patterns for implementing global filtering with the TanStack Table library. No security issues or malicious patterns were detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
This skill builds on core, table-features, client-vs-server, and column-filtering. Global filtering reuses the column-filtering pipeline.
Setup
import {
columnFilteringFeature,
createFilteredRowModel,
filterFn_includesString,
globalFilteringFeature,
tableFeatures,
} from '@tanstack/table-core'
export const features = tableFeatures({
columnFilteringFeature,
globalFilteringFeature,
filteredRowModel: createFilteredRowModel(),
filterFns: { includesString: filterFn_includesString },
})
Core Patterns
const options = {
globalFilterFn: 'includesString' as const,
getColumnCanGlobalFilter: (column) => column.id !== 'actions',
}
Declare eligibility when product rules differ from default primitive-value detection.
Common Mistakes
[CRITICAL] Omitting column-filter prerequisite
Wrong: tableFeatures({ globalFilteringFeature })
Correct: tableFeatures({ columnFilteringFeature, globalFilteringFeature, filteredRowModel: createFilteredRowModel() })
Global filtering depends on column filtering and needs the filtered model for client processing.
Source: packages/table-core/src/types/TableFeatures.ts#FeatureSlotPrereqs
[HIGH] Assuming every column participates
Wrong: const options = { globalFilterFn: 'includesString' }
Correct: const options = { getColumnCanGlobalFilter: column => column.id !== 'actions' }
Default eligibility uses the first core row and accepts string or number values.
Source: packages/table-core/src/features/global-filtering/globalFilteringFeature.ts
[HIGH] Keeping manual filter local only
Wrong: table.setGlobalFilter(search); const options = { manualFiltering: true }
Correct: const page = await fetchRows({ search }); const options = { data: page.rows, manualFiltering: true }
Manual filtering bypasses the client model, so the value must drive the server request.
Source: docs/framework/react/guide/global-filtering.md#manual-server-side-global-filtering
API Discovery
Inspect node_modules/@tanstack/table-core/dist/features/global-filtering/ plus dist/features/column-filtering/ for shared state and filter functions.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/tanstack/table/global-filtering">View global-filtering on skillZs</a>