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

preactjs / preact / 5724
100%

Build:
DEFAULT BRANCH: master
Ran 14 Oct 2019 09:40PM UTC
Jobs 1
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

pending completion
5724

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%)

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

855 of 858 relevant lines covered (99.65%)

763.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5724.1 14 Oct 2019 09:40PM UTC 0
99.65
Travis Job 5724.1
Source Files on build 5724
  • 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 Repo
  • Travis Build #5724
  • b46885c7 on github
  • Prev Build on master (#5716)
  • Next Build on master (#5742)
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

© 2025 Coveralls, Inc