Skip to content

Commit

Permalink
fix(error-boundary): connect RenderFallbackProps.reset's args to onRe…
Browse files Browse the repository at this point in the history
…set correctly (toss#178)

* fix(error-boundary): connect RenderFallbackProps.reset's args to onReset

* fix(error-boundary): remove feature of ErrorBoundary's reset passing args to onReset
  • Loading branch information
manudeli authored Jan 14, 2023
1 parent a12487d commit 80a046a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/error-boundary/src/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { ErrorBoundaryGroupContext } from './ErrorBoundaryGroup';

type RenderFallbackProps<ErrorType extends Error = Error> = {
error: ErrorType;
reset: (...args: unknown[]) => void;
reset: () => void;
};

type RenderFallbackType = <ErrorType extends Error>(props: RenderFallbackProps<ErrorType>) => ReactNode;
Expand Down

0 comments on commit 80a046a

Please sign in to comment.