next.js/test/e2e/app-dir/ppr-errors/app/no-suspense-boundary-re-throwing-error/page.jsx
page.jsx14 lines291 B
import React from 'react'
import { cookies } from 'next/headers'

export default async function Page() {
  try {
    await cookies()
  } catch (err) {
    throw new Error(
      "Throwing a new error from 'no-suspense-boundary-re-throwing-error'"
    )
  }
  return <div>Hello World</div>
}
Quest for Codev2.0.0
/
SIGN IN