@patrick can I issue an update for a specific component instead of issuing a generic dmx.requestUpdate()
?
First you need to get the instance of the component. On the component you then can call the $update method like:
const component = dmx.app.find('mycomponent');
if (component) { // did we find the component?
// call the internal update, will also update its children
component.$update();
// alternative you can call:
// component.update({}, new Set())
// first parameter is the old props state and the second parameter
// are a set of property names that were updated
}
1 Like