3fb41561c4
`reactProductionProfiling` was a next config working for pages before mainly for profiling react, this PR also enables it for pages. ### Chanegs * Add react profiling entry and related alias * Fix `reactProductionProfiling` is missing in next config type and schema Closes #51131
17 lines
317 B
JavaScript
17 lines
317 B
JavaScript
import React from 'react'
|
|
|
|
const Index = () => {
|
|
return (
|
|
<React.Profiler
|
|
id="hello"
|
|
onRender={(...res) => {
|
|
window.profileResults = window.profileResults || []
|
|
window.profileResults.push(res)
|
|
}}
|
|
>
|
|
<p>hello pages</p>
|
|
</React.Profiler>
|
|
)
|
|
}
|
|
|
|
export default Index
|