next.js
7da911d6 - chore: remove dead code from ReactDevOverlay (#74702)

Commit
1 year ago
chore: remove dead code from ReactDevOverlay (#74702) ### What? Removes unused props and simplifies the error boundary implementation in the React Dev Overlay component. ### Why? The overlay had unnecessary complexity with unused props like `preventDisplay` and `globalOverlay` that weren't providing value. Simplifying the implementation makes the code more maintainable and easier to understand. ### How? - Removed `preventDisplay` and `globalOverlay` props from ReactDevOverlay - Simplified ErrorBoundary component by removing global overlay handling - Updated type definitions for ErrorDebug component - Cleaned up error display logic in hooks - Updated tests to reflect new component structure
Author
Parents
Loading