Forms not consistently reacting to updates in data property

I have an issue with the Form component not updating correctly when I pre populate the data property.

I’m using the Form component as a calculation tool. Each time it’s submitted, the entered data is saved to database together with calculation results. If the user wants to revisit earlier calculations they can load the data from earlier calculations into the form again, instead of starting from scratch.

I create a JSON object and load it into the data property of the form. I also do this on the cancel command, as I want to have the form prepopulated with default data after a reset.

Setting the default data from the cancel event works like a charm, but when I load the data from elsewhere the, such as from a change script on a custom property, the form only update occasionally. It seems to update with a data that was written second to last.

Example:
First I execute this: Form.data = {"key":valueA} and the form does not update.
Then I update the key Form.data = {"key":valueB}and the form updates to valueA

If if load the complete object into data (without getting the form updated) I can then touch any form entry field and all off the data get loaded into all fields.

It is like there is a update method on the form that does not get triggered correctly when the data is written externally, but does get called when the cancel event script is done.

Is there any exposed method that I can call to update/reload the form?

Does the data prop get updated correctly but not the corresponding form fields? Trying to get a better picture of your setup so the more info you provide the better I can try to reproduce on my end. I’ve setup a change script on a Custom Prop and it works but it is a super simple demo. Also, currently we don’t have an exposed method to update/reload the form.