I have a use case where my schema and uischema contain variables that reference the current formData.
When formData changes, I resolve those variables outside of JSON Forms. If any referenced data changed, I re-generate the resolved schema/uischema and pass them back into JSON Forms.
This generally works fine. The problem is with a custom renderer I wrote for a Select component:
-
Every time the
uischemachanges, my custom renderer is remounted. -
This causes the Select to flicker and temporarily lose its value.
-
I can re-pass the value so the data isn’t lost, but the flicker from the remount is still very noticeable.
Question:
Is there a way to update a uischema in JSON Forms without triggering a full remount of the custom renderer? Or alternatively, is there a recommended approach to handle dynamic uischema updates without causing this kind of flicker?
Thanks!