Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(member): add QueryErrorBoundary component #249

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

gwansikk
Copy link
Member

@gwansikk gwansikk commented Oct 1, 2024

Summary

interface Props {
  fallback: ComponentProps<typeof ErrorBoundary>['fallback'];
  children: ReactNode;
}

export default function QueryErrorBoundary({ fallback, children }: Props) {
  const { reset } = useQueryErrorResetBoundary();

  return (
    <ErrorBoundary onReset={reset} fallback={fallback}>
      {children}
    </ErrorBoundary>
  );
}

@gwansikk gwansikk requested a review from SWARVY October 1, 2024 10:10
@gwansikk gwansikk self-assigned this Oct 1, 2024
Copy link

changeset-bot bot commented Oct 1, 2024

🦋 Changeset detected

Latest commit: ab08d49

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clab-platforms/member Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gwansikk gwansikk marked this pull request as ready for review October 1, 2024 10:10
Copy link
Contributor

@Jeong-Ag Jeong-Ag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!! 👍👍

@gwansikk gwansikk merged commit 853480c into main Oct 1, 2024
4 checks passed
@gwansikk gwansikk deleted the feature/query-error-boundary branch October 1, 2024 12:27
@SWARVY SWARVY restored the feature/query-error-boundary branch October 2, 2024 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants