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

yannickcr / eslint-plugin-react / 4602 / 4
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 21 Oct 2020 05:14AM UTC
Files 109
Run time 11s
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

22 Aug 2020 06:09AM UTC coverage: 95.321% (-0.05%) from 95.366%
TEST=true ESLINT=4

push

travis-ci

Jordan Harband
[New] `jsx-no-constructed-context-values`: add new rule which checks when the value passed to a Context Provider will cause needless rerenders

Adds a new rule that checks if the value prop passed to a Context Provider will cause needless rerenders. A common example is inline object
declaration such as:
```js
<Context.Provider value={{foo: 'bar'}}>
...
</Context.Provider>
```
which will cause the Context to rerender every time this is run because the object is defined with a new reference. This can lead to
performance hits since not only will this rerender all the children of a context, it will also update all consumers of the value. The
search React does to search the tree can also be very expensive. Some other instances that this rule covers are: array declarations,
function declarations (i.e. arrow functions), or new class object instantians.

4664 of 5034 branches covered (92.65%)

5500 of 5770 relevant lines covered (95.32%)

486.96 hits per line

Source Files on job 4602.4 (TEST=true ESLINT=4)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 4364
  • Travis Job 4602.4
  • ac98c0f8 on github
  • Prev Job for TEST=true ESLINT=4 on master (#4596.4)
  • Next Job for TEST=true ESLINT=4 on master (#4603.4)
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