Skip to content
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

Fix double node removal #983

Merged
merged 2 commits into from
Mar 1, 2020
Merged

Conversation

jstarry
Copy link
Member

@jstarry jstarry commented Mar 1, 2020

Fixes: #963
Fixes: #604

Problem

When detaching a component from the DOM, the root element of the component is removed from its parent. This is redundant because, immediately after, Yew will recurse through the components sub dom tree and remove all elements (including the root node).

Changes

  • Remove redundant root element removal from component
  • Change VRef double remove from a panic to a warning

@jstarry jstarry merged commit bb7c828 into yewstack:master Mar 1, 2020
@jstarry jstarry deleted the fix-double-remove branch March 1, 2020 11: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.

Panic when detaching VRef wrapping node created in javascript Components use case with WARN msg
1 participant