next.js/test/e2e/app-dir/use-cache/app/(partially-static)/unhandled-promise-regression/page.tsx
page.tsx16 lines662 B
export default async function Page() {
  console.log('rendering Page')
  return (
    <div>
      This test doesn't actually render any caches. It was added because when
      "use cache" was first introduced without cacheComponents there was a bug
      where we still performed a dev only warmup render which has
      cacheComponents semantics which led to the observation of hanging promise
      rejections in the CLI. `cookies()` and related Request data APIs should
      never be hanging promises when `cacheComponents` is disabled and this was
      corrected but this test helps ensure that we don't regress in this manner
      later
    </div>
  )
}
Quest for Codev2.0.0
/
SIGN IN