Skip to content

Commit c6f102b

Browse files
committed
Add example to migration docs.
1 parent 1e9913e commit c6f102b

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
@@ -1200,8 +1200,6 @@ export class HeaderComponent {
12001200
}
12011201
```
12021202

1203-
---
1204-
12051203
# Deprecations in 7.x
12061204

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

13401338
## Deprecate `wrapRemixHandleError` in Remix SDK (since v7.100.0)
13411339

1342-
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`.
1340+
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`. It can be
1341+
used as below:
1342+
1343+
````typescript
1344+
// entry.server.ts
1345+
1346+
export const handleError = Sentry.wrapHandleErrorWithSentry(() => {
1347+
// Custom handleError implementation
1348+
});
1349+
```
13431350

13441351
## Deprecate using `getClient()` to check if the SDK was initialized
13451352

@@ -1437,7 +1444,7 @@ typescript:
14371444

14381445
```ts
14391446
const replay = getClient().getIntegrationByName<Replay>('Replay');
1440-
```
1447+
````
14411448

14421449
## Deprecate `Hub`
14431450

0 commit comments

Comments
 (0)