MCPcopy Create free account
hub / github.com/bytebase/bytebase / navigateToPath

Function navigateToPath

frontend/src/react/router/navigation.ts:126–133  ·  view source on GitHub ↗
(
  path: string,
  options: { replace?: boolean } = {}
)

Source from the content-addressed store, hash-verified

124
125// Navigate to a raw path (mirrors `router.push(path)` / `router.replace(path)`).
126export 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.

Callers 4

createAuthSliceFunction · 0.90
useNavigateFunction · 0.90
index.tsFile · 0.90
navigation.test.tsFile · 0.90

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected