rsnext/packages/next
Gerald Monaco 1f5f0d313a
Fix metrics measurements under new root API (#24110)
Previously, we weren't recording most (all?) of the Next.js measurements like `Next.js-hydration` in Concurrent Mode. This was mainly because the new API doesn't accept a callback.

Instead of special casing this, I've refactored it so that the measurements are just recorded when Root first flushes (via `useLayoutEffect`), which should be more or less the same timing for the old API.

Concurrent Mode is a little trickier for two reasons:

1. Flushes might be (slightly) delayed due to time-slicing and prioritization
2. Selective hydration might skew measurements in cases where full hydration is aborted

I don't have a good answer for those yet, so they'll need to be addressed when the time comes.
2021-04-20 15:37:32 +00:00
..
bin Update err.sh links to use nextjs.org/docs/messages instead (#23353) 2021-03-29 10:25:00 +02:00
build Add event for webpack 5 usage (#24222) 2021-04-20 16:46:40 +02:00
bundles upgrade webpack to 5.34 (#24230) 2021-04-19 18:18:07 +00:00
cli Update err.sh links to use nextjs.org/docs/messages instead (#23353) 2021-03-29 10:25:00 +02:00
client Fix metrics measurements under new root API (#24110) 2021-04-20 15:37:32 +00:00
compiled upgrade webpack to 5.34 (#24230) 2021-04-19 18:18:07 +00:00
export Add event for webpack 5 usage (#24222) 2021-04-20 16:46:40 +02:00
lib Omit un-necessary stack trace from invalid routes (#24240) 2021-04-20 02:03:46 +00:00
next-server Ensure locale cookie does not error with similarly named cookie (#24182) 2021-04-20 13:41:14 +00:00
pages Font optimization (#21676) 2021-04-05 17:47:03 +00:00
server Add event for webpack 5 usage (#24222) 2021-04-20 16:46:40 +02:00
telemetry Add event for webpack 5 usage (#24222) 2021-04-20 16:46:40 +02:00
types Babel fast mode (#23760) 2021-04-08 12:03:02 +00:00
amp.d.ts Remove re-exports of default when they don't exist (#9450) 2019-11-18 20:11:59 -06:00
amp.js Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
app.d.ts
app.js
babel.d.ts Remove re-exports of default when they don't exist (#9450) 2019-11-18 20:11:59 -06:00
babel.js
client.d.ts
client.js
config.d.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
config.js Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
constants.d.ts Remove default export from constants.d.ts (#8979) 2019-10-07 14:30:07 +02:00
constants.js Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
data.d.ts Remove re-exports of default when they don't exist (#9450) 2019-11-18 20:11:59 -06:00
data.js
document.d.ts
document.js
dynamic.d.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
dynamic.js Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
error.d.ts
error.js
experimental-script.d.ts Script loader component (#18281) 2020-12-01 19:10:16 +01:00
experimental-script.js Script loader component (#18281) 2020-12-01 19:10:16 +01:00
head.d.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
head.js Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
image.d.ts Image component foundation (#17343) 2020-10-14 11:57:10 +02:00
image.js Image component foundation (#17343) 2020-10-14 11:57:10 +02:00
license.md Update license year for all packages 2021-01-11 11:12:19 +01:00
link.d.ts
link.js
package.json v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
README.md Update README to fix broken links. (#23058) 2021-03-15 16:36:24 +00:00
router.d.ts
router.js
taskfile-babel.js Rename package build scripts to dev (#21743) 2021-02-03 17:02:44 +00:00
taskfile-ncc.js Add nccing AMP optimizer (#21980) 2021-02-11 09:55:56 +00:00
taskfile.js Use regex lexer for gathering named groups from has (#23626) 2021-04-13 12:34:51 +00:00
tsconfig.json Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00

Next.js

Getting Started

Visit https://nextjs.org/learn to get started with Next.js.

Documentation

Visit https://nextjs.org/docs to view the full documentation.

Who is using Next.js?

Next.js is used by the world's leading companies. Check out the Next.js Showcase to learn more.

Community

The Next.js community can be found on GitHub Discussions, where you can ask questions, voice ideas, and share your projects.

To chat with other community members you can join the Next.js Discord.

Our Code of Conduct applies to all Next.js community channels.

Contributing

Please see our contributing.md.

Authors