Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix(#768): remove componentDidUpdate auto-reset to avoid premature reset on Suspense fallback

Sameer6305adb46134c419
diff --git a/explorer/src/ErrorBoundary.tsx b/explorer/src/ErrorBoundary.tsx
index abaa924c..94fdb876 100644
--- a/explorer/src/ErrorBoundary.tsx
+++ b/explorer/src/ErrorBoundary.tsx
@@ -25,15 +25,7 @@ export class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundarySt
console.error("ErrorBoundary caught an error:", error, errorInfo);
}
- componentDidUpdate(_prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState) {
- // If the component has successfully rendered (hasError is false)
- // and we were previously tracking retries, reset the retry counter.
- // By checking prevState.hasError, we ensure this reset only triggers
- // exactly once upon the recovery transition.
- if (prevState.hasError && !this.state.hasError && this.state.retryCount > 0) {
- this.setState({ retryCount: 0 });
- }
- }
+
resetErrorBoundary = () => {
this.setState((prev) => ({