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

tomkp / react-split-pane / 1102
92%

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

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

2 of 2 new or added lines in 1 file covered. (100.0%)

208 of 228 relevant lines covered (91.23%)

55.14 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1102.1 08 Sep 2018 08:08AM UTC 0
91.23
Travis Job 1102.1
Source Files on build 1102
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1102
  • 7c224615 on github
  • Prev Build on master (#1100)
  • Next Build on master (#1106)
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