We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm working on a plugin that creates changesets.
I was wondering, is there any way to compare if two changesets are equal? (I'm thinking along the lines of the .eq() functions in ProseMirror model).
.eq()
Basically, I was hoping to compare the plugins prevState with current state to determine whether to update decorations.
prevState
The text was updated successfully, but these errors were encountered:
It looks like this doesn't exist yet, but it should be rather straightforward to implement. I'd be open to a pull request that adds such a method.
Sorry, something went wrong.
Sure thing, any general advice?
Should comparing the fromA/fromB/toA/toB suffice? Also I suppose we could bail out quickly if the arrays are different lengths?
fromA
fromB
toA
toB
You'd want to compare the spans too, I guess, and only return when the sets are entirely identical.
No branches or pull requests
Hi, I'm working on a plugin that creates changesets.
I was wondering, is there any way to compare if two changesets are equal? (I'm thinking along the lines of the
.eq()
functions in ProseMirror model).Basically, I was hoping to compare the plugins
prevState
with current state to determine whether to update decorations.The text was updated successfully, but these errors were encountered: