-
Notifications
You must be signed in to change notification settings - Fork 0
fix(deps): update dependency @tanstack/react-table to v9 #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: SamuelIVX/MetricForge
Length of output: 1327
🏁 Script executed:
Repository: SamuelIVX/MetricForge
Length of output: 21723
🌐 Web query:
TanStack React Table v9 v8 migration useReactTable from@tanstack/react-tablelegacy stockFeatures useLegacyTable💡 Result:
TanStack Table v9 was officially released as a stable version on August 4, 2026 [1][2]. This major release introduces a new architecture focused on performance and tree-shaking by requiring explicit configuration of features and row models, moving away from the "all-in-one" bundled approach of v8 [3][4][5]. For developers migrating from v8, TanStack provides a transition path using the
useLegacyTablehook [3][4][5]. Legacy Migration (useLegacyTable) TheuseLegacyTablehook is a temporary compatibility layer that accepts the v8-style API while running v9 under the hood [3][4]. - Status: It is deprecated and intended only as a short-term migration aid [4][5]. - Trade-off: It includes all features by default, resulting in a larger bundle size compared to the standard v9 approach [4][5]. - Usage: It allows you to continue using v8-styleget*RowModel()options instead of the new v9rowModelsconfiguration [4][6]. Recommended Migration Path (useTable) To fully utilize v9, you should migrate to theuseTablehook [4][5]. - Features: You must explicitly declare required features using thetableFeatures()utility [3][7]. - stockFeatures: If you want to replicate v8 behavior (including all features) but with the modern v9 API, you can import and usestockFeatures[3][7]. - Row Models: Instead ofget*RowModel()options, you configure row models via therowModelsoption (e.g.,createFilteredRowModel()) [3][8]. Key differences for your migration include: - Tree-shaking: Only import and register the specific features and row model functions your table actually uses [3][4][5]. - State Management: v9 introduces more granular state subscriptions (e.g.,table.Subscribe) compared to the automatic full-state subscription of v8 [9][4][5]. - Reusable Configurations:useLegacyTablecannot be used with the newcreateTableHookpattern; you must migrate to the full v9 API to create reusable table configurations [4]. Plan to move away fromuseLegacyTableas soon as possible to take advantage of improved performance and reduced bundle sizes [4][5].Citations:
Remove the incompatible v9 table bump or migrate the consumers.
@tanstack/react-tableis now^9.0.0, but the app still importsuseReactTableand row-model helpers from@tanstack/react-tableand passes the v8 options object. TanStack Table v9 does not include these features by default. AdduseLegacyTableat@tanstack/react-table/legacy, or update both table consumers to the v9tableFeatures/rowModelsAPI, before merging this change.🤖 Prompt for AI Agents