Skip to content

Commit 8a3311c

Browse files
committed
Add deprecation flag to remixRouterInstrumentation
1 parent c2a2a43 commit 8a3311c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/remix/src/client/performance.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ function startNavigationSpan(matches: RouteMatch<string>[]): void {
143143
}
144144

145145
/**
146+
* @deprecated Use `browserTracingIntegration` instead.
147+
*
146148
* Creates a react-router v6 instrumention for Remix applications.
147149
*
148150
* This implementation is slightly different (and simpler) from the react-router instrumentation
149151
* as in Remix, `useMatches` hook is available where in react-router-v6 it's not yet.
150-
*
151-
* @deprecated Use `browserTracingIntegration` instead.
152152
*/
153153
export function remixRouterInstrumentation(useEffect: UseEffect, useLocation: UseLocation, useMatches: UseMatches) {
154154
return (

0 commit comments

Comments
 (0)