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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/vite-8.0.5
DEFAULT BRANCH: develop
Repo Added 03 Apr 2026 01:32AM UTC
Token Mj4Qz6pHmaOENfGMTc8iRMiOspMyIpWhX regen
Build 7 Last
Files 24
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
Sync Branches
  • master
  • dependabot/npm_and_yarn/lodash-es-4.18.1
  • dependabot/npm_and_yarn/vite-8.0.5
  • develop

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

Relevant lines Covered
Build:
Build:
207 RELEVANT LINES 207 COVERED LINES
12.67 HITS PER LINE
Source Files on master
  • Tree
  • List 24
  • Changed 14
  • Source Changed 14
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
24006181955 master 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... push 05 Apr 2026 05:00PM UTC damienbutt github
97.4
23955892696 master docs: update badges to point at master push 03 Apr 2026 05:43PM UTC damienbutt github
97.07
See All Builds (7)

Badge your Repo: react-crestron-ch5-hooks

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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