TanStack

T

TanStack

TanStack is a community of passionate software engineers striving for high-quality, open-source software for web devs

Join

react-query-questions

solid-query-questions

table-questions

virtual-questions

router-questions

react-charts-questions

ranger-questions

vue-query-questions

svelte-query-questions

bling-questions

form-questions

angular-query-questions

start-questions

db-questions

start-showcase

router-showcase

📣-announcements

fair-rose
fair-rose9/28/2022

Has anyone been successful implementing rowSelection and selected update on a button click?

I have been mirroring the example for row selection found here: https://codesandbox.io/s/github/tanstack/table/tree/main/examples/react/row-selection?from-embed=&file=/src/main.tsx But unfortunately the selected state does not update on button click, however I am able to select a row and view the data in the row, its just the state is always false even though I can retrieve the data and see the index of the selected row in the rowSelection state....
fascinating-indigo
fascinating-indigo9/28/2022

Can't perform a React state update on a component that hasn't mounted yet

Hi all, I am creating several tables and one is giving me grief. I keep getting the error 'Can't perform a React state update on a component that hasn't mounted yet' no matter how I structure it. Looking in console, I can see that the table renders twice, but I dont know why. The logs show: Creating Table Instance... Warning: Can't perform a React state update on a component that hasn't mounted yet Creating Table Instance......