Commit a67fe1d7 authored by Janka Uryga's avatar Janka Uryga

add extra logs in pages

parent 84215b3e
export default async function Page(props: { export default async function Page(props: {
params: Promise<{ top: string; bottom: string }> params: Promise<{ top: string; bottom: string }>
}) { }) {
const location = '/none/[top]/unwrapped/[bottom]/page.tsx'
process.stdout.write(`${location} :: awaiting params\n`)
using _ = {
async [Symbol.dispose]() {
process.stdout.write(`${location} :: finished awaiting params\n`)
},
}
return ( return (
<p> <p>
Top: {(await props.params).top}, Bottom: {(await props.params).bottom} Top: {(await props.params).top}, Bottom: {(await props.params).bottom}
......
export default async function Page(props: { export default async function Page(props: {
params: Promise<{ top: string; bottom: string }> params: Promise<{ top: string; bottom: string }>
}) { }) {
const location = '/none/[top]/wrapped/[bottom]/page.tsx'
process.stdout.write(`${location} :: awaiting params\n`)
using _ = {
async [Symbol.dispose]() {
process.stdout.write(`${location} :: finished awaiting params\n`)
},
}
return ( return (
<p> <p>
Top: {(await props.params).top}, Bottom: {(await props.params).bottom} Top: {(await props.params).top}, Bottom: {(await props.params).bottom}
......
export default async function Page(props: { export default async function Page(props: {
params: Promise<{ top: string; bottom: string }> params: Promise<{ top: string; bottom: string }>
}) { }) {
const location = '/partial/[top]/unwrapped/[bottom]/page.tsx'
process.stdout.write(`${location} :: awaiting params\n`)
using _ = {
async [Symbol.dispose]() {
process.stdout.write(`${location} :: finished awaiting params\n`)
},
}
return ( return (
<p> <p>
Top: {(await props.params).top}, Bottom: {(await props.params).bottom} Top: {(await props.params).top}, Bottom: {(await props.params).bottom}
......
export default async function Page(props: { export default async function Page(props: {
params: Promise<{ top: string; bottom: string }> params: Promise<{ top: string; bottom: string }>
}) { }) {
const location = '/partial/[top]/wrapped/[bottom]/page.tsx'
process.stdout.write(`${location} :: awaiting params\n`)
using _ = {
async [Symbol.dispose]() {
process.stdout.write(`${location} :: finished awaiting params\n`)
},
}
return ( return (
<p> <p>
Top: {(await props.params).top}, Bottom: {(await props.params).bottom} Top: {(await props.params).top}, Bottom: {(await props.params).bottom}
......
...@@ -69,11 +69,11 @@ describe('Cache Components Fallback Validation', () => { ...@@ -69,11 +69,11 @@ describe('Cache Components Fallback Validation', () => {
Learn more: https://nextjs.org/docs/messages/blocking-route", Learn more: https://nextjs.org/docs/messages/blocking-route",
"environmentLabel": "Server", "environmentLabel": "Server",
"label": "Blocking Route", "label": "Blocking Route",
"source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26) @ Page "source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26) @ Page
> 6 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom} > 13 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom}
| ^", | ^",
"stack": [ "stack": [
"Page app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26)", "Page app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26)",
"ReportValidation <anonymous>", "ReportValidation <anonymous>",
], ],
} }
...@@ -98,11 +98,11 @@ describe('Cache Components Fallback Validation', () => { ...@@ -98,11 +98,11 @@ describe('Cache Components Fallback Validation', () => {
Learn more: https://nextjs.org/docs/messages/blocking-route", Learn more: https://nextjs.org/docs/messages/blocking-route",
"environmentLabel": "Server", "environmentLabel": "Server",
"label": "Blocking Route", "label": "Blocking Route",
"source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26) @ Page "source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26) @ Page
> 6 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom} > 13 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom}
| ^", | ^",
"stack": [ "stack": [
"Page app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26)", "Page app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26)",
"ReportValidation <anonymous>", "ReportValidation <anonymous>",
], ],
} }
...@@ -130,11 +130,11 @@ describe('Cache Components Fallback Validation', () => { ...@@ -130,11 +130,11 @@ describe('Cache Components Fallback Validation', () => {
Learn more: https://nextjs.org/docs/messages/blocking-route", Learn more: https://nextjs.org/docs/messages/blocking-route",
"environmentLabel": "Server", "environmentLabel": "Server",
"label": "Blocking Route", "label": "Blocking Route",
"source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26) @ Page "source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26) @ Page
> 6 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom} > 13 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom}
| ^", | ^",
"stack": [ "stack": [
"Page app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26)", "Page app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26)",
"ReportValidation <anonymous>", "ReportValidation <anonymous>",
], ],
} }
...@@ -159,11 +159,11 @@ describe('Cache Components Fallback Validation', () => { ...@@ -159,11 +159,11 @@ describe('Cache Components Fallback Validation', () => {
Learn more: https://nextjs.org/docs/messages/blocking-route", Learn more: https://nextjs.org/docs/messages/blocking-route",
"environmentLabel": "Server", "environmentLabel": "Server",
"label": "Blocking Route", "label": "Blocking Route",
"source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26) @ Page "source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26) @ Page
> 6 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom} > 13 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom}
| ^", | ^",
"stack": [ "stack": [
"Page app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26)", "Page app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26)",
"ReportValidation <anonymous>", "ReportValidation <anonymous>",
], ],
} }
...@@ -191,11 +191,11 @@ describe('Cache Components Fallback Validation', () => { ...@@ -191,11 +191,11 @@ describe('Cache Components Fallback Validation', () => {
Learn more: https://nextjs.org/docs/messages/blocking-route", Learn more: https://nextjs.org/docs/messages/blocking-route",
"environmentLabel": "Server", "environmentLabel": "Server",
"label": "Blocking Route", "label": "Blocking Route",
"source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26) @ Page "source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26) @ Page
> 6 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom} > 13 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom}
| ^", | ^",
"stack": [ "stack": [
"Page app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26)", "Page app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26)",
"ReportValidation <anonymous>", "ReportValidation <anonymous>",
], ],
} }
...@@ -220,11 +220,11 @@ describe('Cache Components Fallback Validation', () => { ...@@ -220,11 +220,11 @@ describe('Cache Components Fallback Validation', () => {
Learn more: https://nextjs.org/docs/messages/blocking-route", Learn more: https://nextjs.org/docs/messages/blocking-route",
"environmentLabel": "Server", "environmentLabel": "Server",
"label": "Blocking Route", "label": "Blocking Route",
"source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26) @ Page "source": "app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26) @ Page
> 6 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom} > 13 | Top: {(await props.params).top}, Bottom: {(await props.params).bottom}
| ^", | ^",
"stack": [ "stack": [
"Page app/partial/[top]/unwrapped/[bottom]/page.tsx (6:26)", "Page app/partial/[top]/unwrapped/[bottom]/page.tsx (13:26)",
"ReportValidation <anonymous>", "ReportValidation <anonymous>",
], ],
} }
......
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