Consideration for Combobox keepMounted default value #6227
jacobwilson41
started this conversation in
Feedback
Replies: 1 comment
-
I'll check whether is it possible to create an accessible solution for that. |
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
-
I would like to propose that the
keepMounted
prop's default value befalse
instead oftrue
.In the case where many combobox's are rendered and each one has many options, this will result in slow rendering performance.
I just got done spending many hours debugging this situation and tracked the issue to the fact that each of my 17 combobox's each had to render their 192 options because of
keepMounted
default value oftrue
.Unfortunately I am building an application in an environment that does not have access to the React devtools and so it was difficult to find the cause of the issue.
I think its worth considering that the
keepMounted
option be opt-in instead of opt-out.I can't think of any downsides to this proposal so maybe this community will show me the potential tradeoffs that I'm missing.
Beta Was this translation helpful? Give feedback.
All reactions