You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constdoc=newLoroDoc()doc.getMap('data').set('name',null)consttag=newMirror({
doc,schema: TAG_SCHEMA,checkStateConsistency: true})tag.checkStateConsistency()// no error is thrown here
The same for:
constdoc=newLoroDoc()consttag=newMirror({
doc,schema: TAG_SCHEMA,checkStateConsistency: true,initialState: {data: {name: null,description: null}}})tag.checkStateConsistency()// no error is thrown here
It seems that validation only happens in the setState() method, am I doing something wrong?