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

garthenweb / react-viewport-utils / 104
73%

Build:
DEFAULT BRANCH: master
Ran 16 Feb 2020 01:39PM UTC
Jobs 4
Files 8
Run time 6s
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
104

push

travis-ci

garthenweb
fix(useViewportEffect): support changing recalculateLayoutBeforeUpdate in combination with deferUpdateUntilIdle

When recalculateLayoutBeforeUpdate is used with a dynamic value in a
function, e.g. useRect, the function is not reassninged to the listener.
This can especially become an issue with deferUpdateUntilIdle.
In the example of useRect, the deferred function will be called with the
old element (which might be null) and the update which is triggered
afterwards containing the new function is not respected any longer.
Afterwards the dependency is not changing any longer, therefore the
state stays undefined.

Using a dynamic function that calls the latest function independent of
when it was registered fixes the issue.

Closes #16

194 of 318 branches covered (61.01%)

Branch coverage included in aggregate %.

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

445 of 559 relevant lines covered (79.61%)

45.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 104.1 16 Feb 2020 01:39PM UTC 0
72.86
Travis Job 104.1
2 104.2 16 Feb 2020 01:39PM UTC 0
72.86
Travis Job 104.2
3 104.3 16 Feb 2020 01:39PM UTC 0
72.86
Travis Job 104.3
4 104.4 16 Feb 2020 01:39PM UTC 0
72.86
Travis Job 104.4
Source Files on build 104
  • 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 Repo
  • Travis Build #104
  • 02efe835 on github
  • Prev Build on master (#103)
  • Next Build on master (#105)
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

© 2025 Coveralls, Inc