(
path: string,
options: { replace?: boolean } = {}
)
| 124 | |
| 125 | // Navigate to a raw path (mirrors `router.push(path)` / `router.replace(path)`). |
| 126 | export function navigateToPath( |
| 127 | path: string, |
| 128 | options: { replace?: boolean } = {} |
| 129 | ): Promise<void> { |
| 130 | return Promise.resolve( |
| 131 | appRouter?.navigate(path, { replace: options.replace }) |
| 132 | ); |
| 133 | } |
| 134 | |
| 135 | // Current data-router state (location + matches), for non-hook snapshots used |
| 136 | // by the `router.currentRoute.value` drop-in. |
no test coverage detected