2.4.0 • Published 1 month ago

@bugsnag/react-router-performance v2.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month 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.4.0

1 month ago

2.3.0-alpha.0

2 months ago

2.2.0

3 months ago

2.1.0

5 months ago

1.2.1-alpha.4

6 months ago

2.0.0

6 months ago

1.2.1-alpha.3

6 months ago

1.2.1-alpha.2

6 months ago

1.2.0

7 months ago

1.1.0

8 months ago