I know nothing about the diagramming library, but I think It’s reasonable to expect setSchema
to behave similarly.
I’d suggest trying to get away from the diagramming library’s state management ideas and let the Perspective property tree be the single source of truth for your component’s state.