andyrichardson / fielder

A field-first form library for React and React Native
https://fielder.andyrichardson.dev
MIT License
195 stars 10 forks source link

V2: Event driven validation #296

Closed andyrichardson closed 3 years ago

andyrichardson commented 3 years ago

About

https://gist.github.com/andyrichardson/2b8e04fb02618868ae1bfc47c7d687cb

codecov-io commented 3 years ago

Codecov Report

Merging #296 (cc4ef40) into master (23b691d) will decrease coverage by 1.10%. The diff coverage is 87.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #296      +/-   ##
==========================================
- Coverage   90.55%   89.45%   -1.11%     
==========================================
  Files           3       12       +9     
  Lines         180      256      +76     
  Branches       62       57       -5     
==========================================
+ Hits          163      229      +66     
- Misses         14       26      +12     
+ Partials        3        1       -2     
Impacted Files Coverage Δ
src/actions/setFieldValidation.ts 12.50% <12.50%> (ø)
src/actions/setFieldValue.ts 66.66% <66.66%> (ø)
src/actions/blurField.ts 71.42% <71.42%> (ø)
src/actions/setFieldState.ts 77.77% <77.77%> (ø)
src/actions/mountField.ts 85.71% <85.71%> (ø)
src/actions/unmountField.ts 88.88% <88.88%> (ø)
src/validation/applyValidationToState.ts 90.90% <90.90%> (ø)
src/useField.ts 97.56% <95.23%> (+6.44%) :arrow_up:
src/useForm.ts 93.02% <95.34%> (+2.94%) :arrow_up:
src/useSynchronousReducer.ts 100.00% <100.00%> (ø)
... and 11 more

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 23b691d...cc4ef40. Read the comment docs.