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

wsmd / react-use-form-state / 322
100%

Build:
DEFAULT BRANCH: master
Ran 14 May 2019 10:24PM UTC
Jobs 1
Files 7
Run time 1s
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

pending completion
322

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

Jobs
ID Job ID Ran Files Coverage
1 322.1 14 May 2019 10:24PM UTC 0
98.32
Travis Job 322.1
Source Files on build 322
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #322
  • d962dd9a on github
  • Prev Build on master (#312)
  • Next Build on master (#323)
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