SIGN IN SIGN UP
slidevjs / slidev UNCLAIMED

Presentation Slides for Developers

0 0 50 TypeScript

fix: make useIsSlideActive() based on useSlideContext().$nav.currentSlideNo instead of useNav().currentSlideNo (#2508)

Because useNav().currentSlideNo is just a value parsed from the URL
route
but useSlideContext().$nav.currentSlideNo is a more controlled value
that even works in print/export mode.

Credits to https://github.com/whitphx
M
Max Kurze committed
6672cb55039f13437ef829d6516db111077443b1
Parent: 8941132
Committed by GitHub <noreply@github.com> on 3/27/2026, 1:09:57 PM