Issue a requestUpdate() for a specific component

@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 ='mycomponent');

if (component) { // did we find the component?
  // call the internal update, will also update its children
  // 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