Prevent instance change
Prevent a change to the "instance" record that would turn off grid mode.
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.