next.js/test/e2e/app-dir/use-cache/app/(partially-static)/directive-in-node-modules/without-handler/page.tsx
page.tsx18 lines383 B
import { getCachedRandom } from 'my-pkg'

export default async function Page() {
  const one = await getCachedRandom()
  const two = await getCachedRandom()
  return (
    <main>
      <div>
        One: <span id="one">{one}</span>
      </div>
      <div>
        Two: <span id="two">{two}</span>
      </div>
      {one === two ? '✅ Cached' : '❌ Not cached'}
    </main>
  )
}
Quest for Codev2.0.0
/
SIGN IN