Skip to content

Commit 2241b32

Browse files
committed
Add example to migration docs.
1 parent 1d8af67 commit 2241b32

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
@@ -1003,8 +1003,6 @@ export class HeaderComponent {
10031003
}
10041004
```
10051005

1006-
---
1007-
10081006
# Deprecations in 7.x
10091007

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

11431141
## Deprecate `wrapRemixHandleError` in Remix SDK (since v7.100.0)
11441142

1145-
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`.
1143+
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`. It can be
1144+
used as below:
1145+
1146+
````typescript
1147+
// entry.server.ts
1148+
1149+
export const handleError = Sentry.wrapHandleErrorWithSentry(() => {
1150+
// Custom handleError implementation
1151+
});
1152+
```
11461153

11471154
## Deprecate using `getClient()` to check if the SDK was initialized
11481155

@@ -1240,7 +1247,7 @@ typescript:
12401247

12411248
```ts
12421249
const replay = getClient().getIntegrationByName<Replay>('Replay');
1243-
```
1250+
````
12441251

12451252
## Deprecate `Hub`
12461253

0 commit comments

Comments
 (0)