-
So I have been trying to accomplish the idea that whenever the user clicks any row in the DetailsList the Button gets enabled and when the user clicks outside the selectionzone the Button gets disabled. This is my code
I even used useMemo and kept on banging my head but the problem persists where clicking any row the state is lost and the button is not enabled. I have already tried storing the state of selection also, count, everything but it seems I'm missing out on something essential or fundamental for the implementation |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please find the solution in the following link I have also posted my approach for the same |
Beta Was this translation helpful? Give feedback.
Please find the solution in the following link
https://stackoverflow.com/questions/66379048/detailslist-is-getting-re-rendered-and-hence-is-loosing-its-state/
I have also posted my approach for the same