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

tomkp / react-split-pane / 1102 / 1
92%
master: 92%

Build:
DEFAULT BRANCH: master
Ran 08 Sep 2018 08:08AM UTC
Files 3
Run time 0s
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

08 Sep 2018 08:06AM UTC coverage: 91.228% (-0.4%) from 91.632%
1102.1

push

travis-ci

wuweiweiwu
Use `getDerivedStateFromProps` more simply (#315)

* Update to React@16.4 and add a test for strict mode

This test is a reproduction for #309 and so is currently failing.

There is some complexity in making it work but it reproduces the problem.

* Don't try and avoid updating state

I'm not sure if this is the best solution for #309, as I am not entirely aware of what this code was trying to do, but it *seemed* like it was trying to avoid touching state too much which doesn't seem super useful as there wasn't any complex calculations involved -- and if there was, memoization would be more useful.

In any case it was triggering problems in strict mode which implies it would have broken in later version of React.

151 of 215 branches covered (70.23%)

208 of 228 relevant lines covered (91.23%)

55.14 hits per line

Source Files on job 1102.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1080
  • Travis Job 1102.1
  • 7c224615 on github
  • Prev Job for on master (#1100.1)
  • Next Job for on master (#1106.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