Repository navigation
DetailsList is getting re-rendered and hence is loosing its state #17189
Answered
by
ceroy-ak
Abhishek Kumar (ceroy-ak)
asked this question in
Q&A
|
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 |
Answered by
ceroy-ak
Feb 26, 2021
Replies: 1 comment
|
Please find the solution in the following link I have also posted my approach for the same |
0 replies
Answer selected by
ceroy-ak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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