Open jluyau opened 3 weeks ago
The root cause is that RAC Table expects the user to provided a list of dependencies
to the TableBody in order to invalidate its items
cache, so a case like this where the user wants to hide columns requires the user to provide the columns to the TableBody's dependency array. The provided example above works in RAC if col
is provided to TableBody via dependencies={[cols]}
.
S2 table doesn't allow the dependencies
prop to be provided, and even when modified locally doesn't seem to have any effect on busting the cache despite using RAC Table under the hood, so this will need some investigation
Provide a general summary of the issue here
When updating the columns in an S2/RAC TableView (i.e. hiding/showing columns), TableView throws an error
π€ Expected Behavior?
TableView should not throw an error when the
columns
are changed, and columns should be updated to reflect the latest value.π― Current Behavior
The following error is thrown:
π Possible Solution
No response
π¦ Context
Updating the
columns
prop to hide/show columnsπ₯οΈ Steps to Reproduce
use the following story and press the first action button:
Version
s2: 0.4.1, react-aria-components: 1.4.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
OSX Sonoma 14.1.1
π§’ Your Company/Team
Adobe/Quarry
π· Tracking Issue
No response