mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
bdf82000a8
This adds additional trace handling under the experimental trace mode. Outside of the feature flag the bloom filter for app router paths used in pages to hard navigate was updated to no longer be inlined by default with webpack to avoid invalidating the main bundle for pages too often. Instead the bloom filter data is stored in the `_buildManifest` file which is only used in the pages router and is easier to update as it's per-build already. This tracing feature is still very experimental and should not be leveraged in production or outside of testing. --------- Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
16 lines
278 B
JavaScript
16 lines
278 B
JavaScript
'use client'
|
|
import * as buttonStyle from './button.module.css'
|
|
|
|
export function Button({ children }) {
|
|
return (
|
|
<button
|
|
className={buttonStyle.button}
|
|
onClick={() => {
|
|
console.log('clicked button!')
|
|
}}
|
|
>
|
|
{children}
|
|
</button>
|
|
)
|
|
}
|