Using highlight.io with Remix
@highlight-run/remix npm package in your terminal.
Grab your project ID from app.highlight.io/setup, inject it into your client application using the
loader export from your
root.tsx file, and set the
projectID in the
ErrorBoundary component wraps your component tree and catches crashes/exceptions from your react app. When a crash happens, your users will be prompted with a modal to share details about what led up to the crash. Read more here.
Identify users after the authentication flow of your web app. We recommend doing this in a
useEffect call or in any asynchronous, client-side context.
The first argument of
identify will be searchable via the property
identifier, and the second property is searchable by the key of each item in the object.
Send errors to Highlight from your Remix server using the
See our fullstack Remix guide for more information on how to use Highlight with Remix.