We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 252bb22 commit 553026eCopy full SHA for 553026e
packages/kida-router/src/navigation.ts
@@ -2,6 +2,7 @@ import {
2
type KeysOf,
3
type ValueOfKey,
4
type ReadableSignal,
5
+ type WritableSignal,
6
atIndex,
7
onMount,
8
readonly,
@@ -221,7 +222,7 @@ export function virtualNavigation<const R extends Routes = {}>(
221
222
[routerLocation(createLocation(parseHref(initialPath)))]
223
)
224
const $activeIndex = signal(0)
- const $location = mountable(atIndex($history, $activeIndex))
225
+ const $location = mountable(atIndex($history, $activeIndex) as WritableSignal<RouteLocation<R>>)
226
const go = (steps: number) => {
227
const newIndex = Math.max(0, Math.min(
228
$history().length - 1,
0 commit comments