Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
No EOL
670 B
Text
20 lines
No EOL
670 B
Text
import React from 'react';
|
|
export class PagesDevOverlayErrorBoundary extends React.PureComponent {
|
|
static getDerivedStateFromError(error) {
|
|
return {
|
|
error
|
|
};
|
|
}
|
|
// Explicit type is needed to avoid the generated `.d.ts` having a wide return type that could be specific to the `@types/react` version.
|
|
render() {
|
|
// The component has to be unmounted or else it would continue to error
|
|
return this.state.error ? null : this.props.children;
|
|
}
|
|
constructor(...args){
|
|
super(...args), this.state = {
|
|
error: null
|
|
};
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=pages-dev-overlay-error-boundary.js.map |