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
Compare and return true or false if two vnode structures are equal
To be able to compare structures
let a = ( <container> <inner /> </container> ) function *A() { yield <container /> yield <container><inner loading={true} /></container> yield <container><inner /></container> }
if (await equal(a, <A />)) { // ??? }
The text was updated successfully, but these errors were encountered:
The initial implementation of this function is available here:
x/packages/fringe/src/equal.ts
Line 13 in 6db6e3c
It is marked as experimental.
It will do a direct compare of the final yielded children of each node, with its relevant paired node in the same position of the vnode structure.
Only nodes that have a source reference source (string | number | ...) are compared, and only options with source reference values are compered.
Sorry, something went wrong.
No branches or pull requests
🚀 Feature Proposal
Compare and return true or false if two vnode structures are equal
Motivation
To be able to compare structures
Example
The text was updated successfully, but these errors were encountered: