You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"name": "Loop Task",
"type": "bpmn:activity:task:looptask",
"tag": "component:Modelling/Shapes/ModellingRectangleElement", // could also be "tag:div""htmlattributes": {
"xmlns": "http://www.w3.org/2000/svg",
"width": 60,
"height": 40,
"class": "base-modelling-element"
},
"children": [
// array of objects with the same structure
],
"specifications": {
"aspectratio": "3:4"
}
},
Thank you all :)d
What is expected?
When the object get updated through the store, for example setting the "htmlattributes.widht" = 50, only this elements gets rerendern.
When a new objects is added, only the new object gets rendered.
What is actually happening?
Updating some of the objects properties works fine. When I change the width or something else, only this element gets rerenderd.
But if I add a new elements, all elements get rerenderd. If the element is a vue component, the setup function executes again.
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered:
Came out that the problem was the slot in the "ModellingElement" component. I modified my "BaseRenderer" Component so that I'm able to work around the slot in the ModellingElement component.
Vue version
3
Steps to reproduce
I will provide a reproduction tomorrow, the project is sadly a little bloated and stackblitz can't find my package.json file at the moment.
I am trying to build a generic like rendering component which gets an JSON Array of "Webnodes" as input and renders them.
This is my Component:
This is the Pinia store where the Arrays are saved. The render() function in the component uses the getter function "getChildren".
Example for an object of the json array:
Thank you all :)d
What is expected?
When the object get updated through the store, for example setting the "htmlattributes.widht" = 50, only this elements gets rerendern.
When a new objects is added, only the new object gets rendered.
What is actually happening?
Updating some of the objects properties works fine. When I change the width or something else, only this element gets rerenderd.
But if I add a new elements, all elements get rerenderd. If the element is a vue component, the setup function executes again.
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: