I am dealing with a ZUI component that implements the IGH_VariableParameterComponent interface, and facing a few issues with managing Input Parameters NickName Changes, maybe bugs?
I tried many ways with different Events but was hoping to rely on the obvious Params.ParameterNickNameChanged event which unfortunately seems to have a bug where it will only fire if the user hits return, but will Not work on clicking back on the canvas! (Bug? as reported previously here: https://www.grasshopper3d.com/forum/topics/gha-developers-implementing-variable-parameters?commentId=2985220%3AComment%3A750575)
On an issue that follows a workaround to avoid the issue above, what would be the best way to “Refresh” the component once the NickName change happens? I am trying to keep track of the NickNames at all times but found that the component doesn’t know of the new change unless it gets recomputed on Expire( ) - which I am trying to avoid! mainly because I’m relying on the Params.ParameterChanged event now which fires while the user is typing the nickname - instead, performance-wise, I’d prefer to Expire it one time only - if necessary, once the whole nickName change is fully done (which is the expected Params.ParameterNickNameChanged behaviour).
Also, I noticed that sometimes the Events are Firing multiple times with a single action, especially when using the Params.ParameterChanged event!