Skip to content

equals#13

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 />)) {
   // ???
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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