Skip to content

equals #13

@fabiancook

Description

@fabiancook

🚀 Feature Proposal

Compare and return true or false if two vnode structures are equal

Motivation

To be able to compare structures

Example

let a = (
  <container>
    <inner />
  </container>
)

function *A() {
  yield <container />
  yield <container><inner loading={true} /></container>
  yield <container><inner /></container>
}
if (await equal(a, <A />)) {
   // ???
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions