• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
No new info detected.

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

Build:
DEFAULT BRANCH: master
Ran 21 Oct 2020 05:14AM UTC
Files 109
Run time 12s
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: 97.47% (-0.07%) from 97.543%
TEST=true ESLINT=5

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.

4768 of 5034 branches covered (94.72%)

5624 of 5770 relevant lines covered (97.47%)

521.69 hits per line

Source Files on job 4602.3 (TEST=true ESLINT=5)
  • 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.3
  • ac98c0f8 on github
  • Prev Job for TEST=true ESLINT=5 on master (#4596.3)
  • Next Job for TEST=true ESLINT=5 on master (#4603.3)
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