MCPcopy
hub / github.com/getsentry/sentry / getInitialRouterConfig

Function getInitialRouterConfig

tests/js/sentry-test/reactTestingLibrary.tsx:293–303  ·  view source on GitHub ↗
(options: InitialRouterOptions)

Source from the content-addressed store, hash-verified

291}
292
293function getInitialRouterConfig(options: InitialRouterOptions): {
294 config: RouterConfig | undefined;
295 initialEntry: InitialEntry;
296 outletContext: Record<string, unknown> | undefined;
297} {
298 return {
299 initialEntry: parseLocationConfig(options.initialRouterConfig?.location),
300 config: options.initialRouterConfig,
301 outletContext: options.outletContext,
302 };
303}
304
305/**
306 * Try avoiding unnecessary context and just mount your component. If it works,

Callers 2

renderFunction · 0.70
renderHookWithProvidersFunction · 0.70

Calls 1

parseLocationConfigFunction · 0.85

Tested by

no test coverage detected