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
The mutator considers "setIfMissing" a non-squashable patch since it conceptually could change the shape of the document. This messes up squashing since Sanity always sends a set if missing patch before each delta patch. It is conceptually correct to squash setIfMissing patches as long as the resulting patch contains one of each setIfMissing when it first arrive.
[setIfMissing("field"), diffMatchPatch("field", ...), setIfMissing("field"), diffMatchPatch("field", ...), setIfMissing("field"), diffMatchPatch("field", ...)] can be squashed to [setIfMissing("field"), diffMatchPatch("field", ...)]
The text was updated successfully, but these errors were encountered:
The mutator considers "setIfMissing" a non-squashable patch since it conceptually could change the shape of the document. This messes up squashing since Sanity always sends a set if missing patch before each delta patch. It is conceptually correct to squash setIfMissing patches as long as the resulting patch contains one of each setIfMissing when it first arrive.
[setIfMissing("field"), diffMatchPatch("field", ...), setIfMissing("field"), diffMatchPatch("field", ...), setIfMissing("field"), diffMatchPatch("field", ...)]
can be squashed to[setIfMissing("field"), diffMatchPatch("field", ...)]
The text was updated successfully, but these errors were encountered: