-
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 error boundary component #315
Conversation
🦋 Changeset detectedLatest commit: 58dfcf1 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 ✨
|
PR Type
Enhancement, Bug fix
Description
ErrorBoundaryContent
component to handle error states and provide options to save the current graph state or reload the page.ErrorBoundary
in key components (DropPanel
,GraphEditor
,Inputsheet
,OutputSheet
) withinlayoutController
andSubgraphExplorer
.react-error-boundary
dependency to version4.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.file.
Button
andText
for user interaction duringerrors.
layoutController.tsx
Integrate ErrorBoundary in layoutController components
packages/graph-editor/src/editor/layoutController.tsx
DropPanel
,GraphEditor
,Inputsheet
,OutputSheet
) inErrorBoundary
.ErrorBoundaryContent
as the fallback component.specifics.tsx
Add ErrorBoundary to SubgraphExplorer component
packages/graph-editor/src/registry/specifics.tsx
GraphEditor
inErrorBoundary
withinSubgraphExplorer
.ErrorBoundaryContent
as the fallback component.angry-dolls-call.md
Add changeset for error boundaries enhancement
.changeset/angry-dolls-call.md
panels.
package.json
Update react-error-boundary dependency version
packages/graph-editor/package.json
react-error-boundary
dependency version from4.0.11
to4.0.13
.