I have a couple of lists of integers that I want to store in a
ValueTree, but I want to perform a task, using an updated list, atomically, ie. not receive callbacks for each item changing. I want to do this because the values are then sent, as a single list, through another API.
Making them all properties results in a callback per property, making them children results in a callback per child. Making sure they are always updated in a specific order, and a doing the update on the last one doesn’t work because if the last value doesn’t actually change, then I don’t get the callback. I can’t store them as an
Array<var> because I export the
The solution I am leaning towards is simply to remove and re-add the
ValueTree to the parent, using the single
valueTreeChildAdded callback to do the update. Anyways, just thought I would survey the community to see if anyone else has done something like this, and settled on a solution. Thanks in advance.