ErrorNoticecomponent
ErrorNotice({ reason }: ErrorProps): ReactElement| Param | Type | |
|---|---|---|
props | ErrorProps | Props for a component that renders a caught error reason. required |
.reason | unknown | required |
| Return | |
|---|---|
ReactElement |
Render a caught error as an inline <Notice> with a retry button.
- Uses
getMessage()to extract a human-readable message, falling back to"Unknown error".