Override internal table state (beta 26)
See original GitHub issueDescribe the bug
Table Options API state.selectedRowPaths: Set<RowPathKey>
does not work.
My goal is to provide selection through parent component (making react-table controlled) but internal state override is not taken into account.
To Reproduce
- Go to CodeSandBox
- Initial state is OK (5th row is selected)
- State override is NOK (3th row not selected)
Expected behavior
When provided, Table Options API state
should override internal state.
Desktop (please complete the following information):
- OS : Windows
- Browser : Chrome
- Version : 78
Additional context
BETA react-table 26
Issue Analytics
- State:
- Created 4 years ago
- Comments:12
Top Results From Across the Web
Override internal table state (beta 26) · Issue #1704 - GitHub
My goal is to provide selection through parent component (making react-table controlled) but internal state override is not taken into ...
Read more >Change the records with abap in internal table - SAP Community
Hi experts,. In an internal table, i have some data. I want to modify all the records contained in the fieldC to a...
Read more >Chrome Enterprise and Education release notes
Last updated on: November 29, 2022For administrators who manage Chrome browser or ChromeOS devices for a business or school.
Read more >Release Notes for Beta Channel - Microsoft Learn
This article contains release notes for Beta Channel builds of Word, Excel, PowerPoint, Outlook, Access, and Project for Windows desktop.
Read more >Interior Designers : Occupational Outlook Handbook
Interior designers make indoor spaces functional, safe, and beautiful by determining space requirements and selecting essential and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is now available in beta.27
@serge20 have you tried example given in FAQ ?
Below a constricted sample working in latest version RC15.
In addition, you should use your own select handlers (in your custom table) to maintain selected rows state in your parent component (to update controlledSelectedRowIds in above example) and not use handlers (toggleRowSelected…) provided by the useRowSelect hook.