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

preactjs / preact / 5724 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 14 Oct 2019 09:40PM UTC
Files 19
Run time 3s
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 Oct 2019 09:37PM UTC coverage: 99.65%. Remained the same
5724.1

push

travis-ci

JoviDeCroock
Properly flush nested setState callbacks (-6 B)  (#2010)

* Properly flush nested renderCallbacks (-3 B)

Previously, we would synchronously flush nested renderCallbacks. This behavior meant that nested setState calls would flush before there state was properly applied in diff, meaning DOM, props, etc. wouldn't have been updated for that setState call when the callback was run (though the state would be correct due to a shortcut we took).

This PR fixes this behavior by only invoking the renderCallbacks for the current setState call synchronously. Nested setState callbacks are queued and executed when those setState cals are applied.

* Update forceUpdate to match setState (-2 B)

* Ignore return value of renderCallbacks (-1 B)

819 of 845 branches covered (96.92%)

855 of 858 relevant lines covered (99.65%)

763.83 hits per line

Source Files on job 5724.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1146
  • Travis Job 5724.1
  • b46885c7 on github
  • Prev Job for on master (#5716.1)
  • Next Job for on master (#5742.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