Repository navigation
docs(core): soft-deprecate useTableRowExpansion for the tree plugin (#4142) - #4587
Merged
humbertovirtudes merged 1 commit intoJul 31, 2026
Merged
Conversation
…eta#4142) Fourth step of the tree-plugin convergence. useTableTreeData + useTableTreeState now cover useTableRowExpansion's affordances (expand-all header control meta#4172, whole-row click meta#4548) with a cycle guard and fine-grained re-render, and the migration guide landed in meta#4584. Mark the older plugin deprecated without removing it: - @deprecated JSDoc on useTableRowExpansion and useTableRowExpansionState (and the file header), each pointing to the tree plugin and the migration guide. - Prefix the doc.mjs descriptions with "Deprecated: use useTableTreeData + useTableTreeState instead", so it shows in the docs and via `astryx component useTableRowExpansion`. The hooks still work; existing consumers are unaffected. Removal and a version-keyed codemod follow in a later release.
humbertovirtudes
requested review from
cixzhang,
ejhammond and
imdreamrunner
as code owners
July 31, 2026 10:08
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsTable (@astryxdesign/core) · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
Contributor
Author
|
Superseded by #4609: we are keeping useTableRowExpansion and repurposing it as a detail-panel plugin, not deprecating it. Closing. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fourth step of the tree-plugin convergence tracked in #4142: soft-deprecate
useTableRowExpansionanduseTableRowExpansionStatein favor of the tree plugin.With expand-all (#4172), whole-row click (#4548), and the migration guide (#4584) all landed,
useTableTreeData+useTableTreeStatenow cover the older plugin's affordances, and do so with a cycle guard, per-row fine-grained re-render, and imperative row ARIA. This marks the older plugin deprecated so consumers get a clear signal, without removing anything.What changed
packages/core/src/Table/plugins/rowExpansion/useTableRowExpansion.tsx:@deprecatedJSDoc onuseTableRowExpansionanduseTableRowExpansionState, each pointing to the tree plugin and the migration guide.@deprecatednote on the file header.packages/core/src/Table/useTableRowExpansion.doc.mjs:Deprecated: use useTableTreeData + useTableTreeState instead, matching theGrid/TopNavHeadingdeprecation precedent.The marker surfaces in editors (JSDoc strikethrough) and via
astryx component useTableRowExpansion.Not a breaking change
The hooks still work and existing consumers are unaffected. There is no
no-deprecatedlint gate in the repo, so the plugin's own example block, story, and tests continue to pass. Removal and a version-keyed codemod follow in a later release (the codemod belongs to the removal version, since the plugin still exists today).Test plan
astryx component useTableRowExpansionshows theDeprecated:marker and the migration guide.tsc --project packages/core/tsconfig.jsonandtsconfig.docs.json: clean.useTableRowExpansiontests: 14 pass.eslinton changed files: clean.check:changesets: valid.