Hi,
How would I go about making sure the generated form is updated if I externally add to the schema (adding another property of type string for example) without a full page reload and local storage shenanigans?
I currently have a wrapper component around the jsonforms component, into which the schema is passed as a behavior-subject. My idea is to init the JsonFormsAngularService in the wrapper component with the initial data, schema and UiSchema. Then, whenever the schema changes, to use the service to update the schema and refresh the component with the service’s refresh() method.
At the moment I can get the state to change (it contains new properties I’m adding), but the generated form does not change.
I’m curious if my approach is somewhat admissible, and if so, what am I missing?
If there is an easier way I’m also all ears!
Thanks!