rsnext/test/integration/basic/pages/dynamic
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
..
bundle.js Run method sorting codemod (#4909) 2018-08-06 20:53:06 -07:00
chunkfilename.js Keep chunks filenames in production mode (#5029) 2018-09-03 01:40:21 +02:00
function.js Introduce dynamic(() => import()) (#5249) 2018-09-25 15:27:09 +02:00
head.js Apply sideEffect at DidMount on the client side (#5068) 2018-09-02 19:18:20 +02:00
index.js Load chunks in SSR mode only if they exists in the filesystem (#2196) 2017-06-08 19:41:22 +02:00
multiple-modules.js Introduce dynamic(() => import()) (#5249) 2018-09-25 15:27:09 +02:00
nested.js Fix recursive hydration of next/dynamic (#6326) 2019-02-17 19:52:00 +01:00
no-chunk.js Load chunks in SSR mode only if they exists in the filesystem (#2196) 2017-06-08 19:41:22 +02:00
no-ssr-custom-loading.js Add some tests for dynamic rendering. 2017-04-27 08:39:52 -07:00
no-ssr.js Add some tests for dynamic rendering. 2017-04-27 08:39:52 -07:00
ssr-true.js Tests for "ssr: true" on dynamic pages (#5728) 2018-11-25 01:11:25 +01:00
ssr.js Introduce dynamic(() => import()) (#5249) 2018-09-25 15:27:09 +02:00