• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wsmd / react-use-form-state / 322 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 14 May 2019 10:24PM UTC
Files 7
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 May 2019 10:22PM UTC coverage: 98.322% (-1.7%) from 100.0%
322.1

push

travis-ci

wsmd
Fix stale closures of event handlers (#76)

* Fix stale closures of callback options in inputs.text et. al.

The implementation of useFormState is problematic because it
caches callback functions passed to inputs.text et. al. This
causes functions like onChange, validate, and onBlur to run with
stale closures, namely, the closure with which they are
initialised.

This commit fixes the issue by removing the `callback` cache from
the implementation. Tests that depended on this buggy behavior
were removed as they are unsupportable features given the current
implementation.

* Re-add getOrSet to useCache

111 of 115 branches covered (96.52%)

Branch coverage included in aggregate %.

182 of 183 relevant lines covered (99.45%)

252.52 hits per line

Source Files on job 322.1
  • Tree
  • List 0
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 290
  • Travis Job 322.1
  • d962dd9a on github
  • Prev Job for on master (#312.1)
  • Next Job for on master (#323.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc