-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add boundary component #310
Conversation
🦋 Changeset detectedLatest commit: 72a6c2b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a changeset for this and I think its ready to merge
close as I opnend another one based on master |
User description
PR Type
Enhancement, Bug fix
Description
ErrorBoundaryContent
component to handle error states, allowing users to save and download the current graph state or reload the page.ErrorBoundary
in key components within the layout controller andSubgraphExplorer
to handle errors gracefully.react-error-boundary
dependency version to4.0.13
.Changes walkthrough 📝
ErrorBoundaryContent.tsx
Add `ErrorBoundaryContent` component for error handling
packages/graph-editor/src/components/ErrorBoundaryContent.tsx
ErrorBoundaryContent
component to handle error states.graph reference.
layoutController.tsx
Integrate `ErrorBoundary` in layout controller components
packages/graph-editor/src/editor/layoutController.tsx
ErrorBoundary
to handle errors gracefully.ErrorBoundaryContent
as the fallback component.specifics.tsx
Add error boundary to `SubgraphExplorer` component
packages/graph-editor/src/registry/specifics.tsx
GraphEditor
component withErrorBoundary
inSubgraphExplorer
.ErrorBoundaryContent
as the fallback component.package.json
Update `react-error-boundary` dependency version
packages/graph-editor/package.json
react-error-boundary
dependency version from4.0.11
to4.0.13
.