rsnext/packages
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
..
create-next-app chore(create-next-app): update help information (#24251) 2021-04-20 13:12:10 +00:00
eslint-plugin-next v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
next Fix metrics measurements under new root API (#24110) 2021-04-20 15:37:32 +00:00
next-bundle-analyzer v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
next-codemod v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
next-env v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
next-mdx v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
next-plugin-google-analytics v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
next-plugin-sentry v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
next-plugin-storybook v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
next-polyfill-module v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
next-polyfill-nomodule v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
react-dev-overlay v10.1.4-canary.11 2021-04-19 21:41:09 -05:00
react-refresh-utils v10.1.4-canary.11 2021-04-19 21:41:09 -05:00