I’m using BPMN-js with React and referencing quizzical-lake-szfyo - CodeSandbox sandbox.
I have a child component that is a modal that changes making the parent rerender and each time importing the bpmn-diagram again.
If I’m using BPMN promise-based approach for importing then I end up with a blank page with just 1 import ( my goal is 1 import with a diagram in it ).
I’m also getting undefined properties in parent Node when I’m trying to updateProperties using commandstack execute in React
const businessObject = getBusinessObject(currentElementEvent.element);
businessObject.name = e.selectedOptions[0].text;
var context = {
element: currentElementEvent.element,
properties: {
name: selectedItem,
},
};
commandStack.execute('element.updateProperties', context);