[v8.0.0-alpha.31] Nested accessors functionality is missing #3849
Unanswered
justincorrigible
asked this question in
Ideas
Replies: 1 comment
-
The merging requirements for the PR are beyond the scope of work I can afford right now. If anyone comes across this meanwhile, you could use something like this when creating your columns: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
As of v7 docs,
You can also specify deeply nested values with accessors like info.hobbies or even address[0].street
(see accessor at https://react-table.tanstack.com/docs/api/useTable#column-options).This functionality was made available through this v7 function, which hasn't been fully ported to v8 here (currently looking at alpha.v31).
All of the examples include flat data sources (i.e. all properties are at the object's root level), and thus the issue is not noticeable. However, I've got a "fixed" version working in my local, and will be opening a PR soon.
Will amend this PR to include a working example, if requested afterwards.
Steps to reproduce
provide an accessor like
root.level1
to get data from{ root: { level1: 'eureka!' } }
Expected behavior
Data should be found inside nested object structures.
react-table version
8.0.0-alpha.31
Terms & Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions