apache / incubator-kie-tools

Tools for KIE
Apache License 2.0
252 stars 185 forks source link

When should we be using unsubscribeToContentChanges #2524

Open venkata-ramana-subramanyam opened 3 months ago

venkata-ramana-subramanyam commented 3 months ago

I was going through the kie editor documentation here - https://blog.kie.org/2020/10/bpmn-and-dmn-standalone-editors.html and I have a question on when to use unsubscribeToContentChanges method.

Whenever I do subscribeToContentChanges, should i everytime do unsubscribeToContentChanges?

Thanks

tiagobento commented 3 weeks ago

Only if you want to stop your callback from being executed when there are changes done to the models.