MCPcopy
hub / github.com/vercel/next.js / Head

Function Head

packages/next/src/client/index.tsx:432–437  ·  view source on GitHub ↗
({ callback }: { callback: () => void })

Source from the content-addressed store, hash-verified

430// Dummy component that we render as a child of Root so that we can
431// toggle the correct styles before the page is rendered.
432function Head({ callback }: { callback: () => void }): null {
433 // We use `useLayoutEffect` to guarantee the callback is executed
434 // as soon as React flushes the update.
435 React.useLayoutEffect(() => callback(), [callback])
436 return null
437}
438
439const performanceMarks = {
440 navigationStart: 'navigationStart',

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.70

Tested by

no test coverage detected