mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
20 lines
291 B
JavaScript
20 lines
291 B
JavaScript
import { connection } from 'next/server'
|
|
|
|
async function Inner({ id }) {
|
|
'use cache'
|
|
|
|
return <p>inner cache</p>
|
|
}
|
|
|
|
async function Outer({ id }) {
|
|
'use cache'
|
|
|
|
return <Inner id="inner" />
|
|
}
|
|
|
|
export default async function Page() {
|
|
await connection()
|
|
|
|
return <Outer id="outer" />
|
|
}
|