projectstorm / react-diagrams

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

isDirty or hasChanged? #907

Open indefinitelee opened 2 years ago

indefinitelee commented 2 years ago

is there any method or prop exposed that I can check to see if the diagram has changed in any way?

I can save the state of the diagram by calling model.serializeDiagram() however I also want to alert a user if they have unsaved changes.

is there a recommended approach for this?