Skip to content

Commit df01b63

Browse files
committed
feat(solidjs): Remove untrack from fallback as it's not needed
1 parent d80ac0b commit df01b63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/solidjs/src/errorboundary.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { captureException } from '@sentry/browser';
22
import type { Component, JSX } from 'solid-js';
3-
import { mergeProps, splitProps, untrack } from 'solid-js';
3+
import { mergeProps, splitProps } from 'solid-js';
44
import { createComponent } from 'solid-js/web';
55

66
type ErrorBoundaryProps = {
@@ -21,7 +21,7 @@ export function withSentryErrorBoundary(ErrorBoundary: Component<ErrorBoundaryPr
2121
captureException(error);
2222

2323
const f = local.fallback;
24-
return typeof f === 'function' ? untrack(() => f(error, reset)) : f;
24+
return typeof f === 'function' ? f(error, reset) : f;
2525
};
2626

2727
return createComponent(ErrorBoundary, mergeProps({ fallback }, others));

0 commit comments

Comments
 (0)