🎯 Changes#
Fixes #6081.
Custom getFacetedUniqueValues factories are now refreshed when the table option changes. This prevents column and global faceting APIs from retaining a getter created during the first React render while still preserving the cached getter when the factory reference is unchanged.
The root cause was that column and global faceting captured the initial factory result during table construction. Although useReactTable updates table.options on every render, those cached getters were never rebuilt.
This PR also adds a regression test covering option updates for both column and global faceted unique values, including verification that unchanged factories remain cached, plus a patch changeset for @tanstack/table-core.
✅ Checklist#
🚀 Release Impact#
Important
Review skipped#
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
82697ec6-7177-4cf3-a53e-ca10ed4c2baaYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share