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

Norgate-AV / react-crestron-ch5-hooks / 24006181955
97%
develop: 97%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/vite-8.0.5
DEFAULT BRANCH: develop
Ran 05 Apr 2026 05:00PM UTC
Jobs 1
Files 24
Run time 1min
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

05 Apr 2026 02:48PM UTC coverage: 97.403% (+0.3%) from 97.073%
24006181955

push

github

damienbutt
feat(hooks): seed initial state from getState on mount

Subscribe hooks now call getState() synchronously during the useState
lazy initialiser so that on re-mounts (page/popup transitions, conditional
rendering) the hook returns the current signal value immediately rather
than the hard-coded type default (0 / false / "").

Affects all six subscribe hooks:
- useCrestronSubscribeAnalog
- useCrestronSubscribeDigital
- useCrestronSubscribeSerial
- useCrestronSubscribeAnalogCollection
- useCrestronSubscribeDigitalCollection
- useCrestronSubscribeSerialCollection

Note: cold-start behaviour is unchanged — getState returns null until
Csig.State_Synchronization completes, at which point the subscribe
callback fires and updates state as before.

Tests: added getState spy to setupSubscribeTest helper and two new cases
per subscribe hook (verifies getState is called with the correct
type/name; verifies the hook initialises from the returned value when
prior state exists).

18 of 24 branches covered (75.0%)

Branch coverage included in aggregate %.

23 of 23 new or added lines in 8 files covered. (100.0%)

207 of 207 relevant lines covered (100.0%)

12.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24006181955.1 05 Apr 2026 05:00PM UTC 24
97.4
GitHub Action Run
Source Files on build 24006181955
  • Tree
  • List 24
  • Changed 14
  • Source Changed 14
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24006181955
  • fdd7e0f3 on github
  • Prev Build on master (#23955892696)
  • Delete
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