Memoize input and meta
Preventing unnecessary re-renders is the name of the game. Users will only see gains if they pass in a pure/memoized component, but if they do it's a big difference.
Codecov Report
Merging #640 into master will not change coverage. The diff coverage is
100%.
@@ Coverage Diff @@
## master #640 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 17 17
Lines 251 257 +6
Branches 58 57 -1
=====================================
+ Hits 251 257 +6
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/useField.js | 100% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 692f1d1...40060ae. Read the comment docs.
Note on second glance - because of extensive whitespace changes, the diffs are best viewed with --color-words --ignore-space-change
Can you show me a render counting test that passes if meta and input are memoized but fails if they are not?