Skip to content

Commit 3049b35

Browse files
committed
align useNavigate with react-router
1 parent 73fdba0 commit 3049b35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/solid-router/src/useNavigate.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ export function useNavigate<
4444

4545
export function Navigate<
4646
TRouter extends AnyRouter = RegisteredRouter,
47-
TFrom extends string = string,
48-
TTo extends string | undefined = '.',
49-
TMaskFrom extends string = TFrom,
50-
TMaskTo extends string = '.',
47+
const TFrom extends string = string,
48+
const TTo extends string | undefined = undefined,
49+
const TMaskFrom extends string = TFrom,
50+
const TMaskTo extends string = '',
5151
>(props: NavigateOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo>): null {
5252
const { navigate } = useRouter()
5353

0 commit comments

Comments
 (0)