Buckets:
silverwolf-x/project / test /e2e /app-dir /catch-error /app /server-component /catch-error-wrapper.tsx
| 'use client' | |
| import type { ErrorInfo } from 'next/error' | |
| import { unstable_catchError } from 'next/error' | |
| export function ErrorFallback( | |
| props: { title: string }, | |
| { error, reset, unstable_retry }: ErrorInfo | |
| ) { | |
| return ( | |
| <> | |
| <p id="error-boundary-message">{error.message}</p> | |
| <p id="error-boundary-title">{props.title}</p> | |
| <button id="reset" onClick={() => reset()}> | |
| Reset | |
| </button> | |
| <button id="retry" onClick={() => unstable_retry()}> | |
| Retry | |
| </button> | |
| </> | |
| ) | |
| } | |
| export default unstable_catchError(ErrorFallback) | |
Xet Storage Details
- Size:
- 578 Bytes
- Xet hash:
- 9407044bda20437e00de3057a32e646d7bf8356c5c2820bfcf333633182751a8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.