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

unadlib / use-travel / #133
98%
main: 98%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.1.2
DEFAULT BRANCH: main
Ran 28 Jun 2026 05:13PM UTC
Jobs 1
Files 2
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

28 Jun 2026 05:13PM UTC coverage: 97.802% (+0.2%) from 97.576%
#133

push

web-flow
feat(store): expose reactive canUndo/canRedo getters on useTravelStore controls (#13)

* feat(store): expose reactive canUndo/canRedo getters on useTravelStore controls

`controls.canBack()` / `canForward()` read during render (e.g. the documented
`disabled={!controls.canBack()}` pattern) freeze under the React Compiler, which
memoises the method call on the stable `controls` reference. Expose `canUndo` /
`canRedo` as getters instead — like the existing `position` getter, property reads
are re-evaluated every render and stay reactive. `controls` keeps a stable identity
and the existing `canBack()` / `canForward()` methods are unchanged.

* fix(store): keep controls own-enumerable, add useTravel canUndo/canRedo + docs

42 of 44 branches covered (95.45%)

Branch coverage included in aggregate %.

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

136 of 138 relevant lines covered (98.55%)

57.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #133.1 28 Jun 2026 05:13PM UTC 2
97.8
Source Files on build #133
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 7f7cdf34 on github
  • Prev Build on
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