Skip to content

Commit d0d1cbb

Browse files
committed
Add example to migration docs.
1 parent 20c46aa commit d0d1cbb

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
@@ -804,8 +804,6 @@ export class HeaderComponent {
804804
}
805805
```
806806

807-
---
808-
809807
# Deprecations in 7.x
810808

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

944942
## Deprecate `wrapRemixHandleError` in Remix SDK (since v7.100.0)
945943

946-
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`.
944+
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`. It can be
945+
used as below:
946+
947+
````typescript
948+
// entry.server.ts
949+
950+
export const handleError = Sentry.wrapHandleErrorWithSentry(() => {
951+
// Custom handleError implementation
952+
});
953+
```
947954

948955
## Deprecate using `getClient()` to check if the SDK was initialized
949956

@@ -1041,7 +1048,7 @@ typescript:
10411048

10421049
```ts
10431050
const replay = getClient().getIntegrationByName<Replay>('Replay');
1044-
```
1051+
````
10451052

10461053
## Deprecate `Hub`
10471054

0 commit comments

Comments
 (0)