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

facebook / react / 14062
86%

Build:
DEFAULT BRANCH: master
Ran 04 Nov 2016 09:29PM UTC
Jobs 1
Files 230
Run time 17s
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
14062

push

travis-ci

gaearon
[Fiber] "Task" priority for error boundaries and batched updates (#8193)

* Refactor scheduling functions and introduce Task priority

There was lots of duplication across all the scheduling functions. I
think we're far enough along that we can start trying to clean some
stuff up.

Also introduces a new priority level provisionally called Task priority.
This is for work that completes at the end of the current tick, after
the current batch of work has been committed. It's different from
Synchronous priority, which needs to complete immediately.

A full implementation of Task priority will follow. It will replace
the current batching solution.

* Implement Task priority

Task priority is similar to Synchronous priority. Both are flushed in
the current tick. Synchronous priority is flushed immediately (e.g. sync
work triggered by setState will flush before setState exits), where as
Task is flushed after the current batch of work is committed.

Currently used for batchedUpdates and nested sync updates. Task should
also be used for componentDidUpdate/Mount and error boundary work. I'll
add this in a later commit.

* Make error boundaries use Task Priority

I have all but one error fixed. Not sure how tricky the last one is,
but I'm cautiously optimistic. Pushing to show my current progress.

* Remove recursion from handleErrors

Changed the algorithm of handleErrors a bit to ensure that boundaries
are not revisited once they are acknowledged.

* Add incremental error boundary test

Discovered an edge case: a noop error boundary will break in incremental
mode unless you explicitly schedule an update.

* Refactor error boundaries in Fiber

* Simplify trapError() calls

The existing logic was written before we had a proper error handling system.

* Remove unnecessary flags

* Prevent performTaskWork recursion

* Be stricter about preventing recursion

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

8246 of 9335 relevant lines covered (88.33%)

3090.01 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
src/renderers/shared/fiber/ReactFiberCommitWork.js
14
100.0
src/renderers/shared/fiber/ReactFiberScheduler.js

Uncovered Existing Lines

Lines Coverage ∆ File
10
100.0
src/renderers/shared/fiber/ReactFiberScheduler.js
Jobs
ID Job ID Ran Files Coverage
2 14062.2 (TEST_TYPE=test) 04 Nov 2016 09:29PM UTC 0
88.33
Travis Job 14062.2
Source Files on build 14062
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #14062
  • 4266f08e on github
  • Prev Build on master (#14051)
  • Next Build on master (#14071)
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