0
Fork 0
mirror of https://github.com/TanStack/table.git synced 2026-11-18 18:55:54 +00:00
Commit graph

603 commits

Author SHA1 Message Date
github-actions[bot]
d8ae30bcfe
ci: Version Packages (#6625) 2026-10-08 16:31:03 -05:00
github-actions[bot]
2df4cf3673
ci: Version Packages (#6612)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-04 12:47:48 -05:00
github-actions[bot]
1257a3f9dd
ci: Version Packages (#6610)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-03 23:12:42 -05:00
Kevin Van Cott
e9158e7be8
chore: package upgrades (#6609)
* chore: package upgrades

* chore: retain compatible intent skill validation
2026-10-03 22:05:11 -05:00
Tanner Linsley
23f21c194e
chore: refresh Start example dependencies (#6605) 2026-10-01 12:24:33 -06:00
Kevin Van Cott
0bdf588f98
chore: package upgrades (#6592) 2026-09-14 10:21:24 -05:00
Kevin Van Cott
ce123bc665
chore: remove e2e parellel for realtime trading 2026-09-10 11:29:34 +02:00
Kevin Van Cott
704f80924b
chore: fix benchmark files 2026-08-30 06:16:32 -05:00
github-actions[bot]
d01c01bedb
ci: Version Packages (#6580)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-28 12:37:27 -05:00
Riccardo Perra
f72e5164bc
fix: Add realtime (w/ fake data) trading table example (#6561)
* perf: revisit angular adapter to improve memory usage and flexrender dirty checking

* trading grid example

* perf: revisit angular adapter to improve memory usage and flexrender dirty checking

* perf: revisit angular adapter to improve memory usage and flexrender dirty checking

* update example

* still some improvements

* align examples

* Add realtime-trading example for vue, svelte, octane, alpine, ember

Angular,React,Solid improvements

* Default to virtual scrolling for larger trading datasets

* update README.md

* ci: apply automated fixes

* rename

* ci: apply automated fixes

* ci: apply automated fixes (attempt 2/3)

* ci: apply automated fixes (attempt 3/3)

* refactor: optimize input/output handling in flex render components

- Replace `for...in` loops with `Object.keys()` for better performance and clarity.
- Simplify the rendering logic by removing unnecessary checks and parameters.
- Ensure consistent handling of injectors across component rendering.

* Refactor table implementation and update examples

* Refactor project structure and update related implementations

* ci: apply automated fixes

* Replace TanStack store atoms with native Vue refs

* ci: apply automated fixes

* Prevent text selection in realtime trading grids

* ci: apply automated fixes

* update packages and fix e2e tests

* fix e2e tests and remove virtualiztion from examples without dedicated
ts virtual package

* fix tests

---------

Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-28 11:56:00 -05:00
github-actions[bot]
3bfc1bf60b
ci: Version Packages (#6575)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-26 14:20:28 -05:00
Kevin Van Cott
7dd6d48db2
chore: remove logs 2026-08-18 17:05:36 -05:00
Kevin Van Cott
ac4f134522
docs: add react compiler guide 2026-08-16 15:02:38 -05:00
github-actions[bot]
5304f72da8
ci: Version Packages (#6554)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-14 07:08:10 -05:00
Kevin Van Cott
faa261b54c
feat: support latest TanStack Devtools and refresh package versions (#6553)
Keep Vue and Angular table plugins working with current @tanstack/devtools plugin props and font injection, and bump workspace dependencies excluding Babel and TypeScript.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 06:56:05 -05:00
github-actions[bot]
ff7653dad0
ci: Version Packages (#6533)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-08 22:00:52 -05:00
Kevin Van Cott
ff436663f8
refactor(table-core): centralize no-op state update guarding in setStateSlice (#6532)
* refactor(table-core): centralize no-op state update guarding in setStateSlice

Route every table.setX state router through a single setStateSlice util
that resolves the updater once against the slice's current value,
structurally compares the result, and skips the onXChange handler
entirely when nothing changed. This removes the class of render loops
where auto resets fired change handlers with freshly allocated but
semantically identical values (e.g. autoResetExpanded after a data
reference change), and deletes the scattered ad-hoc guards that
previously protected individual slices.

For uncontrolled slices the default handler receives the pre-resolved
value, so updaters run exactly once. User handlers and externally owned
slices receive the original updater untouched to preserve functional
update composition and independent base-atom fallback semantics.

Supersedes #6519.

Co-Authored-By: Dmitrii Kartashev <dikartashev@gmail.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix test and regen docs

* add date filters to filter examples

* omit row selection from new check

* auto fix lint issues

* ci: apply automated fixes

* format

* lint fix

* uncomment

* address stale updater bug, simplify

* still skip autoResetPageIndex in controlled state scenarios

* regen docs again

* refactor(table-core): make stateSlicesEqual the setStateSlice default, call unguarded handlers directly

setStateSlice now always guards, with isEqual as an override hook for
custom feature slices. Slices that deliberately skip guarding
(rowSelection, columnSizing, columnResizing, globalFilter, and the
expanded/cellSelection setters) call their change handler directly
instead of routing through a no-op wrapper, keeping pointer-frequency
paths free of the routing overhead. rowPinning picks up the guard via
the new default, matching columnPinning.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Dmitrii Kartashev <dikartashev@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-08 21:48:26 -05:00
github-actions[bot]
058a5208ef
ci: Version Packages (#6531)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-08 13:27:55 -05:00
github-actions[bot]
3af6abca64
ci: Version Packages (#6527)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-07 13:18:09 -05:00
Kevin Van Cott
09598d2e41
feat: support infinite pagination page sizes (#6526)
* feat: support infinite pagination page sizes

* add devtools to all with-tanstack examples

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-07 13:11:04 -05:00
Kevin Van Cott
a15c9e6fd6
docs: update client vs server guide and tanstack query examples 2026-08-07 10:23:29 -05:00
github-actions[bot]
896e998827
ci: Version Packages (#6525)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-07 08:19:43 -05:00
Kevin Van Cott
df470c52b5
docs: Add shadcn examples for svelte and vue (#6522)
* docs: Add shadcn examples for svelte and vue

Ports the react lib-shadcn and kitchen-sink-shadcn examples to svelte
(shadcn-svelte / bits-ui) and vue (shadcn-vue / reka-ui), one variant
per framework:

- lib-shadcn: single-file basic demos with the same features object,
  fully internal state, debounced global search, and the numbered
  walkthrough comments from the react originals
- kitchen-sink-shadcn: same architecture as react - identical
  hooks/features.ts, createTableHook with injected table/cell/header
  components, the operator-based filter engine, faceted filters,
  grouping/aggregation, pinning, resizing, and drag reordering wired
  directly with @dnd-kit-svelte / dnd-kit-vue
- date filters cross the calendar boundary as ISO strings since both
  ports use @internationalized/date rather than JS Date
- registers all four under Component Library Examples in docs/config.json

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci: apply automated fixes

* fix grouped column undefined renders

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-06 20:47:52 -05:00
github-actions[bot]
7ec3b9034f
ci: Version Packages (#6513)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-04 00:35:44 -05:00
github-actions[bot]
d0f2ef7a60
release: version packages (#6510)
release: v9.0.0-beta.80

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-03 21:27:01 -05:00
Kevin Van Cott
c6e8a34390
fix: correct row behavior and expand feature guides (#6509) 2026-08-03 21:15:24 -05:00
Kevin Van Cott
82c32e0bc6
docs: regen docs and fix some typos repo wide 2026-08-03 07:31:20 -05:00
Riccardo Perra
abce264e60
fix: Improve table devtools performance (#6474)
* Improve table devtools registration and reactive panels

* Coalesce devtools store updates during browser idle time

* Delete .changeset/quiet-table-devtools.md

* fix kitchen sink css for devtools

---------

Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
2026-08-03 06:50:12 -05:00
github-actions[bot]
00bccc405f
release: version packages (#6504)
release: v9.0.0-beta.78

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 23:36:16 -05:00
github-actions[bot]
4085eec990
release: version packages (#6502)
release: v9.0.0-beta.77

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 23:01:31 -05:00
Kevin Van Cott
aad2c292cb
fix(table-core): correct expanded/paginated state contents and sorting toggle defaults (#6501)
Two independent clusters of default-behavior bugs from the beta triage.

Expanded and paginated state contents:

Expand-all materialized every id in `rowsById`, including leaf rows that
can never expand, so a serialized `ExpandedState` was polluted with dead
keys and `getExpandedDepth` was skewed by them. Materialization now writes
only ids where `row.getCanExpand()` is true, chosen over `subRows.length`
so `getRowCanExpand` lazy-load overrides stay expandable.
`getExpandedDepth` filters the same way, and `getIsAllRowsExpanded` now
only considers expandable rows so the materialized map still round-trips
as "all expanded" (a map of stale ids with no expandable rows is false).

Paginated `flatRows` pushed each row and then recursed into its subRows,
but page rows already contain expanded descendants inline, so those rows
appeared twice. The rebuild now dedupes by row id. Collapsed descendants
stay included, consistent with every other row model, where `flatRows`
ignores expansion state.

`row.toggleExpanded(bool)` and `table.toggleAllRowsExpanded(bool)` fired
`onExpandedChange` even when the requested state already matched, so
controlled consumers got spurious callbacks. Both now early-return.

Neither toggle consulted `row.getCanExpand()`, unlike their row-selection
equivalents, so a non-expandable row could be written into expanded state
imperatively. The expand direction is now guarded; collapsing is always
allowed so stale expanded ids can still be cleaned up.

Sorting toggle defaults:

`column.toggleSorting()` called `column.getNextSortingOrder(column)` with
no `multi` argument, so `enableMultiRemove` was dead on every path. The
argument is now forwarded as `multi && column.getCanMultiSort()`, matching
the multi-mode condition the updater itself uses. The public
`getNextSortingOrder` type now accepts the `multi` argument it always
supported at runtime.

`column.getAutoSortDir()` sampled only `flatRows[0]`, so a leading null or
a manual-sorting data swap flipped the inferred first direction mid-cycle
and silently dropped a state from the toggle cycle. It now samples the
first 10 rows for a non-nullish value, matching `getAutoSortFn`.

Docs: `sortUndefined: false` was documented as "considered tied" in all
framework sorting guides; undefined values are actually passed straight to
the sorting function with no special handling. Corrected, and the missing
`'first'`/`'last'` bullets were added to the generated reference.

Also fixes three crashes in the MRT examples surfaced while testing the
sorting changes. The MUI and Mantine sort labels read `sorting` off
`state`, which does not carry it, and crashed on `sorting.length`; they now
read it through `table.Subscribe` on `table.atoms.sorting`, which also
makes the badge reactive. The row-action edit handler passed a shallow row
copy to `setEditingRow`, breaking the row identity the edit modal needs.
`mrtRefsFeature` seeded the keyed `editInputRefs`/`filterInputRefs` bags
with `null` instead of `{}`, crashing on first keyed write. New e2e
coverage pins all three plus the sort-direction indicator.

Closes #6115
Closes #5833
Closes #6136
Closes #4939
Closes #4946
Closes #5147
Closes #5832

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-02 22:19:11 -05:00
github-actions[bot]
015b3d2cb4
release: version packages (#6500)
release: v9.0.0-beta.76

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 17:45:29 -05:00
Kevin Van Cott
8c9df9c25b
fix(table-core): wire expansion auto-reset into the core row model and guard first runs (#6499)
Auto-resets are `onAfterUpdate` hooks on the row model stage memos. Two
related defects made them fire in the wrong places.

Expansion auto-reset was only wired from the grouped row model, so
`autoResetExpanded` silently did nothing for tables that use expansion
without grouping (#5801). It is now wired from `createCoreRowModel`
alongside the existing pageIndex, sorting, and cell-selection resets, so
a data reference change resets expansion regardless of which features are
installed. `table_autoResetExpanded` gained the same feature guard the
sorting and cell-selection resets already use, since the core row model
runs on tables without the expanding feature.

Auto-resets also fired on the very first computation of every stage
(#5968). `memo` seeds its dependency list to `[]`, so the initial run
always compares as changed, and merely reading a row model on mount
scheduled resets. For uncontrolled tables this was self-cancelling (the
reset targets `initialState`), which is why it went unnoticed, but it
wiped a seeded `initialState.pagination.pageIndex` and pushed unsolicited
`onExpandedChange` / `onPaginationChange` calls at controlled consumers on
mount. v7 and v8 suppressed the first run with a `registered` flag; the
v9 rewrite dropped it.

A new `skipFirstRun` util restores that suppression. It is applied in the
row model factories, which already run once per table, so each table gets
its own flag. The grouped row model tracked previous inputs already and
only needed its first-run condition inverted. The worker bridge reports
every stage as changed in its first response, so it carries an equivalent
`hasAppliedResults` flag.

Landing order matters: wiring expansion into the core row model without
the first-run guard would have extended the mount-time wipe from grouped
tables to every table using expansion, so both halves ship together.

- fix: wire `table_autoResetExpanded` into `createCoreRowModel` (#5801)
- fix: skip auto-resets on the first computation of each stage (#5968)
- add `skipFirstRun` util; apply to core, filtered, and sorted row models
- invert the grouped row model's first-run condition
- guard `table_autoResetExpanded` when the expanding feature is absent
- skip auto-resets on the worker bridge's first applied result
- tests: expansion reset without the grouping feature; first-run guard
  suite covering seeded initial state and controlled-state consumers

Examples: migrate the basic examples to `createColumnHelper` across all
frameworks, document more table options inline as commented-out defaults,
and replace the `filterFns.between` workaround in the React expanding
example with the `filterFn_between` individual export that already
existed.

Closes #5801
Closes #5968
Supersedes #6443

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-02 17:31:25 -05:00
github-actions[bot]
bd622ee31b
release: version packages (#6498)
release: v9.0.0-beta.75

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 16:54:59 -05:00
github-actions[bot]
6fe1f858bb
release: version packages (#6496)
release: v9.0.0-beta.74

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 10:52:57 -05:00
Kevin Van Cott
0c57cc8b0e
fix: honor selection rules in select-all paths, add deselectParents option (#6495)
* fix: honor selection rules in select-all paths, add deselectParents option

Three coordinated row selection fixes for the v9 beta window:

- toggleAllRowsSelected and the getIsAllRowsSelected/getIsAllPageRowsSelected
  getters now honor enableSubRowSelection: sub-rows whose ancestors block
  descent are skipped by select-all and excluded from the all-selected
  computation, matching what toggleAllPageRowsSelected already did (#5116)
- deselecting all rows now preserves the selection of rows whose
  enableRowSelection resolves false; deselectAll: true and
  resetRowSelection(true) remain the full-clear escapes (#5398)
- new opt-in deselectParents flag on ToggleSelectedOptions removes ancestor
  row ids from the selection when a row is deselected, covering the
  select-parent-then-deselect-child sequence without changing default state
  semantics (#6049)

Eligibility walks are deduped with a per-pass ancestor cache (the
enableSubRowSelection predicate runs once per unique parent), and the
all-selected scans check the cheap isRowSelected lookup first so selected
rows skip capability checks entirely.

Includes 20 new tests, updated row-selection guides for all 10 frameworks
(the canonical checkbox snippet now shows the nested-data pattern), SKILL
updates, and refreshed triage notes.

Fixes #5116
Fixes #5398
Fixes #6049
Fixes #4878
Fixes #5416

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* docs(table-core): lock in deselectParents pruning contract for non-selectable ancestors

Review feedback suggested gating pruneAncestorRowIds on row_getCanSelect. That
would reintroduce the stale-parent state the opt-in exists to remove: a
skipped non-selectable ancestor keeps reporting getIsSelected() over a
deselected child. The enableRowSelection deselect guard is deliberately scoped
to the bulk select-all paths only; targeted deselection paths, including
pruning, may clear any id. Encode the decision in JSDoc, an implementation
comment, and a regression test.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-02 10:31:23 -05:00
github-actions[bot]
bd19ba772c
release: version packages (#6494)
release: v9.0.0-beta.73

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 09:10:25 -05:00
github-actions[bot]
9700f9b73b
release: version packages (#6492)
release: v9.0.0-beta.72

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 07:38:11 -05:00
Kevin Van Cott
54fb3bf757
chore: update vite configs to run in codesandbox better 2026-08-02 07:19:17 -05:00
github-actions[bot]
958551dbbc
release: version packages (#6490)
release: v9.0.0-beta.71

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-01 21:17:56 -05:00
github-actions[bot]
3941f7e155
release: version packages (#6488)
release: v9.0.0-beta.70

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-01 19:42:31 -05:00
Kevin Van Cott
e2f305df76
feat: rowSpan and colSpan for cells (#6487)
* feat: rowSpan and colSpan for cells

* address feedback
2026-08-01 19:31:54 -05:00
github-actions[bot]
65712b74fd
release: version packages (#6486)
release: v9.0.0-beta.69

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-01 12:22:03 -05:00
Kevin Van Cott
c517dff651
fix: header row spans work now (#6485) 2026-08-01 10:48:52 -05:00
Kevin Van Cott
efd9aaf461
docs: improve spreadsheet selection interactions (#6484)
* feat: support spreadsheet header drag selection

* port spreadsheet examples to svelte and solid
2026-08-01 08:51:10 -05:00
Kevin Van Cott
0b294316dc
feat: support subtractive cell selection (#6476)
* feat: support subtractive cell selection

* ci: apply automated fixes

* ci: apply automated fixes (attempt 2/3)

* ci: apply automated fixes (attempt 3/3)

* docs: update cell selection skills

* vite type module

* remove test results

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-01 07:28:44 -05:00
Kevin Van Cott
f944d5893e
chore: package upgrades 2026-07-31 17:40:00 -05:00
Kevin Van Cott
d2b2f75d45
feat: octane-table adapter (#6477)
* feat: octane-table adapter

* add skills for octane

* move to compiled tsrx
2026-07-31 14:44:13 -05:00
github-actions[bot]
d66b39f01e
release: version packages (#6471)
release: v9.0.0-beta.65

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-30 19:59:32 -05:00
github-actions[bot]
22d775430f
release: version packages (#6470)
release: v9.0.0-beta.64

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-30 19:09:04 -05:00