({ error }: FallbackProps)
| 1 | import { getErrorMessage, type FallbackProps } from "react-error-boundary"; |
| 2 | |
| 3 | function Fallback({ error }: FallbackProps) { |
| 4 | // Because 'error' can be anything, it's safest not to assume it's an Error |
| 5 | // Use the getErrorMessage helper method to extract the message instead. |
| 6 | const message = getErrorMessage(error) ?? "Unknown error"; |
| 7 | |
| 8 | // Render fallback UI... |
| 9 | return message; // hidden |
| 10 | } |
| 11 | |
| 12 | // <end> |
| 13 |
nothing calls this directly
no test coverage detected
searching dependent graphs…