Buckets:
silverwolf-x/project / test /development /app-dir /async-request-warnings /app /request /headers /page.tsx
| import { headers } from 'next/headers' | |
| function Component() { | |
| // Cast to any as we removed UnsafeUnwrapped types, but still need to test with the sync access | |
| ;(headers() as any).get('component') | |
| ;(headers() as any).has('component') | |
| const allHeaders = [...(headers() as any)] | |
| return <pre>{JSON.stringify(allHeaders, null, 2)}</pre> | |
| } | |
| export default function Page() { | |
| ;(headers() as any).get('page') | |
| return ( | |
| <> | |
| <Component /> | |
| <Component /> | |
| </> | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 485 Bytes
- Xet hash:
- 2add175d8cc49093258e27c2fae8690ff24c46f3c1dc1eb6be846a1244f0ab0f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.