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 children re-render component bug #980

Merged
merged 2 commits into from
Feb 29, 2020

Conversation

jstarry
Copy link
Member

@jstarry jstarry commented Feb 29, 2020

Fixes: #964

Problem

  • Rendering children components will reuse the MountState

Changes

  • Unwrap MountState from Rc<RefCell<...>> because we should never be using the same MountState simultaneously
  • Add panic for Mounted clone implementation (will never happen within Yew but need to guard against users abusing the API)

@jstarry jstarry merged commit f659052 into yewstack:master Feb 29, 2020
@jstarry jstarry deleted the fix-children-bug branch February 29, 2020 15:48
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.

Disappearing child component
1 participant