• Creates a react-router v6 instrumention for Remix applications.

    This implementation is slightly different (and simpler) from the react-router instrumentation as in Remix, useMatches hook is available where in react-router-v6 it's not yet.

    Parameters

    • useEffect: UseEffect
    • useLocation: UseLocation
    • useMatches: UseMatches

    Returns ((customStartTransaction, startTransactionOnPageLoad?, startTransactionOnLocationChange?) => void)

      • (customStartTransaction, startTransactionOnPageLoad?, startTransactionOnLocationChange?): void
      • Parameters

        • customStartTransaction: ((context) => undefined | Transaction)
        • startTransactionOnPageLoad: boolean = true
        • startTransactionOnLocationChange: boolean = true

        Returns void

Generated using TypeDoc