You can use Editor's side effects API to prevent certain changes from occuring in the instance state. In this example, we prevent the user from changing the instance's isGridMode property.

Indicators logicPrevent shape change