Unverified Commit e99a92bb authored by Hendrik Liebau's avatar Hendrik Liebau Committed by GitHub

[test] Remove rogue debug log (#88423)

Logging the work unit store caused the following runtime error under
some circumstances:

```
TypeError: Cannot read private member #headersList from an object whose class did not declare it
```
parent f814b8b5
import { Suspense } from 'react' import { Suspense } from 'react'
import { DebugRenderKind } from '../../../../../shared' import { DebugRenderKind } from '../../../../../shared'
import { workUnitAsyncStorage } from 'next/dist/server/app-render/work-unit-async-storage.external'
type Params = { id: string } type Params = { id: string }
...@@ -25,11 +24,6 @@ export default async function Page({ params }: { params: Promise<Params> }) { ...@@ -25,11 +24,6 @@ export default async function Page({ params }: { params: Promise<Params> }) {
} }
async function RuntimePrefetchable({ params }: { params: Promise<Params> }) { async function RuntimePrefetchable({ params }: { params: Promise<Params> }) {
const res = await params await params
console.log(
'RuntimePrefetchable :: awaited params',
res,
workUnitAsyncStorage.getStore()
)
return <div id="timestamp">Timestamp: {Date.now()}</div> return <div id="timestamp">Timestamp: {Date.now()}</div>
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment