Buckets:
silverwolf-x/project / packages /next /src /client /components /dev-root-http-access-fallback-boundary.tsx
| 'use client' | |
| import React from 'react' | |
| import { HTTPAccessFallbackBoundary } from './http-access-fallback/error-boundary' | |
| // TODO: error on using forbidden and unauthorized in root layout | |
| export function bailOnRootNotFound() { | |
| throw new Error('notFound() is not allowed to use in root layout') | |
| } | |
| function NotAllowedRootHTTPFallbackError() { | |
| bailOnRootNotFound() | |
| return null | |
| } | |
| export function DevRootHTTPAccessFallbackBoundary({ | |
| children, | |
| }: { | |
| children: React.ReactNode | |
| }) { | |
| return ( | |
| <HTTPAccessFallbackBoundary notFound={<NotAllowedRootHTTPFallbackError />}> | |
| {children} | |
| </HTTPAccessFallbackBoundary> | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 636 Bytes
- Xet hash:
- ad0116e5cd6ba361b8b093dbb5d19ce47b896357f1c915594e6ad31427076189
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.