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

Function navigateByName

frontend/src/react/router/navigation.ts:111–123  ·  view source on GitHub ↗
(
  name: string,
  options: {
    params?: NavParams;
    query?: NavQuery;
    replace?: boolean;
  } = {}
)

Source from the content-addressed store, hash-verified

109
110// Navigate by route name (mirrors vue-router `router.push({ name, query })`).
111export function navigateByName(
112 name: string,
113 options: {
114 params?: NavParams;
115 query?: NavQuery;
116 replace?: boolean;
117 } = {}
118): Promise<void> {
119 const path = resolvePath(name, options);
120 return Promise.resolve(
121 appRouter?.navigate(path, { replace: options.replace })
122 );
123}
124
125// Navigate to a raw path (mirrors `router.push(path)` / `router.replace(path)`).
126export function navigateToPath(

Callers 2

createAuthSliceFunction · 0.90
navigation.test.tsFile · 0.90

Calls 2

resolvePathFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected