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

medplum / medplum / 23865486177
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-9162-f1363ddc11449219bd826b36d25d00e7e120e4f7
DEFAULT BRANCH: main
Ran 01 Apr 2026 07:18PM UTC
Jobs 1
Files 755
Run time 2min
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

01 Apr 2026 06:55PM UTC coverage: 92.216% (+0.003%) from 92.213%
23865486177

push

github

web-flow
Add `enabled` option to `useSearch` hooks (#8838)

* Add `enabled` option to useSearch hooks

This allows callers to defer a search until a dependency is ready (e.g.
waiting on another query's result), working around React's rules of
hooks which prohibit conditional hook calls.

Signed-off-by: Noah Silas <noah@medplum.com>

* Add useDebouncedValue tests

This hook only had implicit test coverage. Adding explicit test coverage
before I make changes.

Signed-off-by: Noah Silas <noah@medplum.com>

* Reset useDebouncedValue `leading` trigger more consistently

When the "leading" edge is fired, it sets the cooldown ref but doesn't
start a timer to clear it. This means that the cooldown after the first
"leading" edge was effectively infinite.

This meant that there were some scenarios, such as our "useSearch"
hooks, where updates can be less frequent than expected, which is
especially unfortunate in the context of the medplum client
auto-batcher; if some searches don't fire at the right time, they won't
get batched with other queries as expected, leading to extra network
traffic.

Signed-off-by: Noah Silas <noah@medplum.com>

* [autofix.ci] apply automated fixes

---------

Signed-off-by: Noah Silas <noah@medplum.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

17980 of 20415 branches covered (88.07%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 2 files covered. (100.0%)

32665 of 34505 relevant lines covered (94.67%)

14527.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23865486177.1 01 Apr 2026 07:17PM UTC 755
92.22
GitHub Action Run
Source Files on build 23865486177
  • Tree
  • List 755
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 59930832 on github
  • Prev Build on gh-readonly-queue/main/pr-8845-20790b17d76f335e60dd703f65d4eb13bbb4754d (#23865087614)
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