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

preactjs / preact / 5099
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 10 Aug 2019 10:03PM UTC
Jobs 1
Files 19
Run time 5s
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
5099

Pull #1851

travis-ci

web-flow
Schedule effect/update queue flushes if hooks change

When scheduling a state update or effect, check whether the
`options.{debounceRendering, requestAnimationFrame}` hooks changed since
an update/effect queue flush was last scheduled and schedule a flush
using the new hooks if so.

This fixes an issue where a call to `act` would fail to synchronously flush
state updates and effects if a flush was already scheduled but not yet executed
before `act` was called. This happened because when a state update or effect was
queued during the `act` callback, if the global update/effect queues were
non-empty then the temporary hooks installed by `act` to facilitate
synchronously flushing the queue would not be called.

More generally, this fixes an issue where any changes to the scheduling hooks
do not take effect until any already-scheduled flushes have happened.

Fixes #1794
Pull Request #1851: Fix `act` not flushing effects/updates if global effect/update queues are non-empty before `act` call

783 of 803 branches covered (97.51%)

6 of 6 new or added lines in 2 files covered. (100.0%)

808 of 809 relevant lines covered (99.88%)

777.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5099.1 10 Aug 2019 10:03PM UTC 0
99.88
Travis Job 5099.1
Source Files on build 5099
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5099
  • Pull Request #1851
  • PR Base - master (#5083)
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