Skip to content

Implement PartialEq for ChildrenRenderer#916

Merged
jstarry merged 1 commit into
yewstack:masterfrom
jstarry:partial-eq-children
Feb 4, 2020
Merged

Implement PartialEq for ChildrenRenderer#916
jstarry merged 1 commit into
yewstack:masterfrom
jstarry:partial-eq-children

Conversation

@jstarry
Copy link
Copy Markdown
Member

@jstarry jstarry commented Feb 2, 2020

Fixes: #907

Problem

It's not easy to check that the children of a component didn't change.

Changes

  • Expand PartialEq for VNode to include VRef and VList
  • Implement PartialEq for ChildrenRenderer<T: PartialEq> (This will implement it for Children because it's just an alias for ChildrenRenderer<VNode>

@jstarry jstarry merged commit aedce8b into yewstack:master Feb 4, 2020
@jstarry jstarry deleted the partial-eq-children branch February 4, 2020 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implementing change for children

1 participant