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(rerender): Do not mount component again on rerender #199

Merged
merged 2 commits into from
Jan 8, 2021
Merged

Conversation

afontcu
Copy link
Member

@afontcu afontcu commented Jan 8, 2021

Closes #197 and #198


wrapper = mountComponent(TestComponent, props)
},
rerender: props => wrapper.setProps(props),
Copy link
Member Author

@afontcu afontcu Jan 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mostly it. Other changes are there because we don't need a wrapper variable (and a mountComponent function) anymore.

@codecov
Copy link

codecov bot commented Jan 8, 2021

Codecov Report

Merging #199 (0c1bff6) into next (94f57f8) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              next      #199   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           91        84    -7     
  Branches        30        29    -1     
=========================================
- Hits            91        84    -7     
Impacted Files Coverage Δ
src/index.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94f57f8...0c1bff6. Read the comment docs.

@afontcu afontcu merged commit ca5f32c into next Jan 8, 2021
@afontcu afontcu deleted the fix-rerender branch January 8, 2021 14:28
@github-actions
Copy link

github-actions bot commented Jan 8, 2021

🎉 This PR is included in version 6.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant