Bug reportNov 30, 2026· 0:20· 12 views
TanStack Table v9.3.1: useTable() returns undefined for feature-default options
0:20 total
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
medium@tanstack/react-table useTable() adapter: how options are merged and exposed on the returned table instance. Feature getDefaultOptions (for example ColumnSizing columnResizeMode) are applied to the internal table but not to the options object on the hook return value.
os: macOSdpr: 1react: 18.3.1locale: en-USbrowser: Chromium 151.0.7922.34library: @tanstack/react-table@9.3.1delivery: esm.sh CDNtimezone: Europe/Berlinviewport: 1280x720page_title: TanStack Table v9.3.1: useTable options bug (#6667)
Repro steps
- 1.Open the repro page that uses @tanstack/react-table@9.3.1 with React 18.3.1 via esm.sh. It renders a table with Name, Department and Score columns.
- 2.Do not pass columnResizeMode to useTable(). Rely on the feature default.
- 3.Read table.options.columnResizeMode from the object returned by useTable(). The red panel shows this value.
- 4.Read row.table.options.columnResizeMode from a row's internal table reference. The green panel shows this value.
- 5.Optionally hover the resize handle on the Name header cell.
Expected
table.options.columnResizeMode on the useTable() return value equals the feature default "onEnd". It should match row.table.options.columnResizeMode.
Actual
table.options.columnResizeMode on the hook return value is undefined. row.table.options.columnResizeMode on the internal table is "onEnd". The hook return value appears to drop feature defaults that the internal table still has.
Evidence
visualThe red panel 'table.options.columnResizeMode (hook return value)' shows undefined with an X and '(expected "onEnd")'.
visualControl: the green panel 'row.table.options.columnResizeMode (internal table)' shows "onEnd" with a check mark. The internal table resolves the default correctly.
visualThe header identifies the setup: '@tanstack/react-table@9.3.1 · React 18.3.1 · esm.sh CDN · issue #6667'.
visualA vertical resize handle appears at the right edge of the Name header cell.
visualThe resize handle is gone and column widths look unchanged.
visualThe hook return value still shows undefined while the internal table still shows "onEnd". The mismatch persists to the end of the recording.
Issue markdown (copy-paste ready)
## Summary In `@tanstack/react-table@9.3.1`, `table.options.columnResizeMode` on the object returned by `useTable()` is `undefined`. The same option on the internal table (`row.table.options.columnResizeMode`) is the feature default `"onEnd"`. The hook return value seems to drop feature defaults. ## Environment - @tanstack/react-table 9.3.1 - React 18.3.1 - esm.sh CDN - Chromium 151.0.7922.34, macOS, 1280x720 - Related: issue #6667 ## Steps to reproduce 1. Render a table with `useTable()`. Do not pass `columnResizeMode`. 2. Read `table.options.columnResizeMode` from the hook return value. 3. Read `row.table.options.columnResizeMode` from any row. ## Expected Both values are `"onEnd"`, the ColumnSizing feature default. ## Actual - Hook return value: `undefined` (red panel, 1.0s) - Internal table: `"onEnd"` (green panel, 1.0s, control works) ## Evidence - 1.0s: red panel `table.options.columnResizeMode (hook return value)` shows `undefined` with "(expected \"onEnd\")". - 1.0s: green panel `row.table.options.columnResizeMode (internal table)` shows `"onEnd"`. - 13.0s: a resize handle appears on the Name header. At 15.0s it is gone and column widths look unchanged. - 19.0s: the mismatch is still present. No console or network events were captured. ## Suggested area The `useTable()` adapter's option merging. Feature `getDefaultOptions` reach the internal table but not `options` on the returned instance. *Recorded with SceneRecap.*
This report was written by SceneRecap from a screen recording. Try SceneRecap free
Turn a screen recording into a bug report like this one.
Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.
Try SceneRecap free →