()
| 65 | } |
| 66 | |
| 67 | render(): ReactNode { |
| 68 | const { hasError } = this.state; |
| 69 | const { children, fallback } = this.props; |
| 70 | |
| 71 | if (hasError) { |
| 72 | if (fallback) { |
| 73 | return fallback; |
| 74 | } |
| 75 | |
| 76 | return <NextError statusCode={0} />; |
| 77 | } |
| 78 | |
| 79 | return children; |
| 80 | } |
| 81 | } |
nothing calls this directly
no outgoing calls
no test coverage detected