-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
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
feat: add custom compare node props #4889
Conversation
|
0863928
to
862e439
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @zhugexinxin could you please add a test showing what is failing currently that passes after this PR lands? Thanks!
I'm not very good at testing, but I'm willing to try. this is demo url https://codesandbox.io/s/xenodochial-gould-j35v1o?file=/src/App.js
hasChanges always true |
dc6f83b
to
8f3f26f
Compare
I don't know where is the problem at the moment and may need help and hints |
8f3f26f
to
ec93a84
Compare
tests have been added |
@dylans |
Integration tests are somewhat flaky on GitHub Actions and timeout prematurely. I'll push an updated release now. |
thank you! |
I'm not sure I get why |
* feat: add custom compare props * chore: add test for custom compare props
Description
add custom compare node props
Example
node = { type: 'p', attributes: { hidden: true } }
Context
If you don't do it, you may create an infinite loop when setting properties
Checks
yarn test
.yarn lint
. (Fix errors withyarn fix
.)yarn start
.)yarn changeset add
.)