projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.45k stars 1.16k forks source link

Deserialization not working #985

Open matthias-hoste opened 1 year ago

matthias-hoste commented 1 year ago

I'm trying to deserialize a model using the following code: this.model.deserializeModel(JSON.parse(template), this.engine);

However it doesn't do anything, nothing seems to happen and the canvas remains empty. To serialize it I'm using the following code: this.props.model.serialize()

Might be worth mentioning that I am using custom models as well