Skip to content

Commit 0207729

Browse files
committed
Add example to migration docs.
1 parent d726841 commit 0207729

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
@@ -1228,8 +1228,6 @@ export class HeaderComponent {
12281228
}
12291229
```
12301230

1231-
---
1232-
12331231
# Deprecations in 7.x
12341232

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

13681366
## Deprecate `wrapRemixHandleError` in Remix SDK (since v7.100.0)
13691367

1370-
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`.
1368+
This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`. It can be
1369+
used as below:
1370+
1371+
````typescript
1372+
// entry.server.ts
1373+
1374+
export const handleError = Sentry.wrapHandleErrorWithSentry(() => {
1375+
// Custom handleError implementation
1376+
});
1377+
```
13711378

13721379
## Deprecate using `getClient()` to check if the SDK was initialized
13731380

@@ -1465,7 +1472,7 @@ typescript:
14651472

14661473
```ts
14671474
const replay = getClient().getIntegrationByName<Replay>('Replay');
1468-
```
1475+
````
14691476

14701477
## Deprecate `Hub`
14711478

0 commit comments

Comments
 (0)