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: construction sideEffect #970

Merged
merged 1 commit into from
May 10, 2018
Merged

fix: construction sideEffect #970

merged 1 commit into from
May 10, 2018

Conversation

theKashey
Copy link
Collaborator

This PR removes "construction" side effect, @neoziro found while debugging Loadable-components.

In short - RHL will construct Components to examine internal changes, even if user never used them in real.

This PR making this operation possible only for mounted components, postponing until usage for the rest.

@theKashey theKashey requested a review from gregberge May 10, 2018 07:50
@codecov-io
Copy link

codecov-io commented May 10, 2018

Codecov Report

Merging #970 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #970      +/-   ##
==========================================
+ Coverage   89.02%   89.06%   +0.04%     
==========================================
  Files          30       30              
  Lines         729      741      +12     
  Branches      166      168       +2     
==========================================
+ Hits          649      660      +11     
- Misses         66       67       +1     
  Partials       14       14
Impacted Files Coverage Δ
src/proxy/createClassProxy.js 99.25% <100%> (+0.07%) ⬆️
src/proxy/utils.js 75.6% <0%> (-2.44%) ⬇️

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 323389a...f11b187. Read the comment docs.

Copy link
Collaborator

@gregberge gregberge left a comment

Choose a reason for hiding this comment

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

Nice!!

@theKashey
Copy link
Collaborator Author

Sweet. Do not release until this related issue will be solved.

@romanlex
Copy link

when will release 4.1.4? :)

@theKashey
Copy link
Collaborator Author

theKashey commented May 15, 2018

@neoziro - today? But 4.2.0?

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.

None yet

4 participants