projectstorm / react-diagrams

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

Question: Is there any capability/functionality that tells if there is any change made in engine #745

Closed agarwalishan closed 3 years ago

agarwalishan commented 3 years ago

Is there any functionality in engine that can tell if there is any change made to it. I want this so that I can implement AutoSave feature. Or if this is not even possible then also please tell me. @renato-bohler @dylanvorster

renato-bohler commented 3 years ago

There's no built in callback that is called whenever anything changes, as far as I know.

If you need autosave feature, what I would recommend is to autosave every X seconds. That's what I do in logossim (here).

agarwalishan commented 3 years ago

@renato-bohler Thanks for answering.