Very specific question about ValueTree thread safety

Sorry, to be clear I was referring to the scenario posed in the original question. If the user is interacting with the UI controls and updating the ValueTree on the message thread, then there will be (synchronous) callbacks on the message thread. If the root node is swapped on a background thread while the user is updating the ValueTree on the message thread, then I believe there is a real danger of data races.

1 Like