Setting Context for Nested Components
Hello! I have a table context related question. Nested inside of my column definition, I have a dropdown menu consisting of three options. I'm wanting to maintain the state / context of that dropdown select menu during pagination rerendering. It doesn't seem like there is any way to set the context for those cells individually. The context is set when the table is created with default values, but I am unsure how to update its persistent state afterwards. I've created a high order component, wrapping the <select /> component, setting internal state based onChange events. However, this state is overwritten on rerendering, taking the default value specified in the column definition. Has this problem been solved before? I haven't been able to find any existing examples (the closest being row selection). Thanks in advance for all the help and suggestions!
0 Replies