Skip to content

Conversation

@Andarist
Copy link
Contributor

What we've discussed under #204

@codecov
Copy link

codecov bot commented Mar 28, 2018

Codecov Report

Merging #206 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #206   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           9      8    -1     
  Lines         173    174    +1     
  Branches       58     60    +2     
=====================================
+ Hits          173    174    +1
Impacted Files Coverage Δ
src/ReactFinalForm.js 100% <100%> (ø) ⬆️
src/renderComponent.js 100% <100%> (ø) ⬆️
src/FormSpy.js 100% <100%> (ø) ⬆️
src/Field.js 100% <100%> (ø) ⬆️

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 bd73fac...6e33223. Read the comment docs.

@erikras
Copy link
Member

erikras commented Mar 28, 2018

Having a whole module just to do an if() statement doesn't make sense to me. We're not even saving the "Warning: " string from the bundle size with the dead code removal. Plus, whenever I try to use warning(), I can never remember if true means to print the error or if false means to print the error.

Let's just move the if statements into each call site. Sound good?

@Andarist
Copy link
Contributor Author

Sure thing - done.

@erikras erikras merged commit c346ea7 into final-form:master Mar 28, 2018
@Andarist Andarist deleted the dce/wrap-warning branch March 28, 2018 10:38
@erikras
Copy link
Member

erikras commented Apr 11, 2018

Published in v3.2.1.

@lock
Copy link

lock bot commented May 31, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants