Skip to content

Commit

Permalink
s/reactRouterInstrumentation/createrReactRouterInstrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Mar 22, 2021
1 parent 431cb4c commit fefb6c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react/src/reactrouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ export function reactRouterV4Instrumentation(
routes?: RouteConfig[],
matchPath?: MatchPath,
): ReactRouterInstrumentation {
return reactRouterInstrumentation(history, 'react-router-v4', routes, matchPath);
return createReactRouterInstrumentation(history, 'react-router-v4', routes, matchPath);
}

export function reactRouterV5Instrumentation(
history: RouterHistory,
routes?: RouteConfig[],
matchPath?: MatchPath,
): ReactRouterInstrumentation {
return reactRouterInstrumentation(history, 'react-router-v5', routes, matchPath);
return createReactRouterInstrumentation(history, 'react-router-v5', routes, matchPath);
}

function reactRouterInstrumentation(
function createReactRouterInstrumentation(
history: RouterHistory,
name: string,
allRoutes: RouteConfig[] = [],
Expand Down

0 comments on commit fefb6c8

Please sign in to comment.