Skip to content

Commit 44e1af7

Browse files
committed
Update Remix client usage
1 parent eed0186 commit 44e1af7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-remix.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ export default Sentry.withSentry(App, useEffect, useLocation, useMatches);
9999
Finally, update your `entry.client.tsx` file to initialize Sentry SDK on the client:
100100

101101
```tsx {filename:app/entry.client.tsx}
102-
import * as Sentry from "@sentry/remix";
102+
import * as Sentry from "@sentry/remix/cloudflare";
103+
import { useEffect } from "react";
104+
import { useLocation, useMatches } from "@remix-run/react";
103105

104106
Sentry.init({
105107
dsn: "___PUBLIC_DSN___",

0 commit comments

Comments
 (0)