2.7.1 • Published 12 months ago

@bugsnag/react-router-performance v2.7.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@bugsnag/react-router-performance

A react router integration for BugSnag performance

Usage

import BugsnagPerformance from '@bugsnag/browser-performance'
import { ReactRouterRoutingProvider } from '@bugsnag/react-router-performance'

const basename = '/my-app'

const routes = [
    {
        path: '/',
        element: <Root />,
        children: [
          {
              path: 'contacts/:contactId',
              element: <Contact />,
          },
        ]
    },
]

// basename can be omitted if your application is served from the root
const router = createBrowserRouter(routes, { basename })

BugsnagPerformance.start({
    apiKey,
    routingProvider: new ReactRouterRoutingProvider(routes, basename)
})


ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>
    <RouterProvider router={router} />
  </React.StrictMode>,
)
2.7.1

12 months ago

2.4.0

1 year ago

2.3.0-alpha.0

1 year ago

2.2.0

1 year ago

2.1.0

2 years ago

1.2.1-alpha.4

2 years ago

2.0.0

2 years ago

1.2.1-alpha.3

2 years ago

1.2.1-alpha.2

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago