diff --git a/packages/core/src/router.ts b/packages/core/src/router.ts index fdd2f0aff..f1f3c1cc8 100644 --- a/packages/core/src/router.ts +++ b/packages/core/src/router.ts @@ -271,7 +271,7 @@ export class Router { protected clientVisit(params: ClientSideVisitOptions, { replace = false }: { replace?: boolean } = {}): void { const current = currentPage.get() - const props = typeof params.props === 'function' ? params.props(current.props) : params.props ?? current.props + const props = typeof params.props === 'function' ? params.props(current.props) : (params.props ?? current.props) currentPage.set( {