Skip to content

Commit d71b283

Browse files
committed
Add example to migration docs.
1 parent 4e93adc commit d71b283

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

MIGRATION.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,8 +1217,6 @@ export class HeaderComponent {
12171217
}
12181218
```
12191219

1220-
---
1221-
12221220
# Deprecations in 7.x
12231221

12241222
You can use the **Experimental** [@sentry/migr8](https://www.npmjs.com/package/@sentry/migr8) to automatically update
@@ -1356,7 +1354,16 @@ only be set later during the span lifecycle (and thus not be available during sa
13561354

13571355
## Deprecate `wrapRemixHandleError` in Remix SDK (since v7.100.0)
13581356

1359-
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`.
1357+
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`. It can be
1358+
used as below:
1359+
1360+
````typescript
1361+
// entry.server.ts
1362+
1363+
export const handleError = Sentry.wrapHandleErrorWithSentry(() => {
1364+
// Custom handleError implementation
1365+
});
1366+
```
13601367

13611368
## Deprecate using `getClient()` to check if the SDK was initialized
13621369

@@ -1454,7 +1461,7 @@ typescript:
14541461

14551462
```ts
14561463
const replay = getClient().getIntegrationByName<Replay>('Replay');
1457-
```
1464+
````
14581465

14591466
## Deprecate `Hub`
14601467

0 commit comments

Comments
 (0)