1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/packages/next-server/lib
Tim Neutkens dd9811b206
Fix recursive hydration of next/dynamic (#6326)
Fixes #5347

The main issue is that we were waiting only 1 level of dynamic imports, so the dynamic imports nested inside other dynamic import files were not awaited. This would cause either a flash of loading states or you wouldn't see the loading state (because of preload) but it would then show a hydration warning in development.

Thanks to @arthens for providing the reproduction that I modelled the tests after.
2019-02-17 19:52:00 +01:00
..
router Load ErrorComponent dynamically (#6171) 2019-01-31 20:45:36 +00:00
amp.ts [experimental] Rendering to AMP (#6218) 2019-02-14 10:22:57 -05:00
amphtml-context.ts [experimental] Rendering to AMP (#6218) 2019-02-14 10:22:57 -05:00
constants.js Revert "Move phases back to next/constants (#6104)" 2019-01-26 02:01:49 +01:00
dynamic.js Remove flow types (#5704) 2018-11-21 16:04:37 +01:00
head-manager-context.ts Make side-effect.js smaller (#6118) 2019-01-25 01:39:15 +01:00
head.tsx Move next/head to Typescript (#6131) 2019-01-25 16:43:12 +01:00
loadable-capture.tsx Convert render.js to typescript (#5869) 2018-12-13 01:00:46 +01:00
loadable.js Fix recursive hydration of next/dynamic (#6326) 2019-02-17 19:52:00 +01:00
mitt.ts Replace event-emitter.js by mitt (#5987) 2019-01-04 21:49:21 +01:00
runtime-config.js next-server (#5357) 2018-10-02 00:55:31 +02:00
side-effect.tsx Move next/head to Typescript (#6131) 2019-01-25 16:43:12 +01:00
utils.js Use Typescript to transpile Next.js core files instead of Babel (#5747) 2018-11-28 15:03:02 +01:00