TanStack / table

🤖 Headless UI for building powerful tables & datagrids for TS/JS - React-Table, Vue-Table, Solid-Table, Svelte-Table
https://tanstack.com/table
MIT License
24.49k stars 3.03k forks source link

fix: invalidate cached values after updating accessor functions #5582

Open takoshi opened 1 month ago

takoshi commented 1 month ago

What's this PR

https://github.com/TanStack/table/issues/5363

The above issue reported that getValues returns stale cached values after changing accessor functions.

This PR fixes to invalidate cached values after changing accessor functions.

8cd8449: add unit tests f66f4e6: accessor functions are also held as cache, and it determines whether the cached data are fresh or stale.