You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And elsewhere I have components for filtering that use table.getColumn("columnName")?.getFacetedUniqueValues() in order to show the amount of items that will be filters.
I've found then before any filtering is applied the facet counts include all items at every level of the array that match, but after a filter is applied only the items at the top of the tree are counted (even though all items still show due to the maxLeafRowFilterDepth: 0). This seems incorrect.
My hope is that the getFacetedUniqueValues could support maxLeafRowFilterDepth. However, even if not I believe that consistency between before and after filtering is important.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
Do you intend to try to help solve this bug with your own PR?
None
Terms & Code of Conduct
I agree to follow this project's Code of Conduct
I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
The text was updated successfully, but these errors were encountered:
TanStack Table version
v8.20.6
Framework/Library version
v18.3.1
Describe the bug and the steps to reproduce it
Hi,
I have the following setup for the table:
And elsewhere I have components for filtering that use
table.getColumn("columnName")?.getFacetedUniqueValues()
in order to show the amount of items that will be filters.I've found then before any filtering is applied the facet counts include all items at every level of the array that match, but after a filter is applied only the items at the top of the tree are counted (even though all items still show due to the maxLeafRowFilterDepth: 0). This seems incorrect.
My hope is that the getFacetedUniqueValues could support maxLeafRowFilterDepth. However, even if not I believe that consistency between before and after filtering is important.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://codesandbox.io/p/devbox/charming-bush-lcnqhz
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: