rsnext/test
Jiachi Liu 1a04d94aae
Remove extra suspense boundary for default next/dynamic (#67014)
### What

Reland #64716 

Removing the Suspense boundary on top of `next/dynamic` by default, make
it as `React.lazy` component with preloading CSS feature.

* Remove `suspense` option in `next/dynamic` since it's already
deprecated for a while
* Remove the default loading in app router implmentation of
`next/dynamic`

### Why

Extra Suspense boundary is causing extra useless rendering. For SSR, it
shouldn't render `loading` by default

Related: #64060
Related: #64687
Closes
[NEXT-3074](https://linear.app/vercel/issue/NEXT-3074/app-router-content-flickering-with-reactcreatecontext-and-nextdynamic)

This is sort of a breaking change, since removing the Suspense boundary
on top of `next/dynamic` by default. If there's error happening in side
the dynamic component you need to wrap an extra Suspense boundary on top
of it
2024-06-25 20:40:09 +02:00
..
.stats-app Use react-dom/server.edge instead of .browser in Next.js runtime (#66954) 2024-06-19 11:41:07 +02:00
development dx: add pagePath info to missing component error (#66916) 2024-06-23 09:25:03 +00:00
e2e Remove extra suspense boundary for default next/dynamic (#67014) 2024-06-25 20:40:09 +02:00
examples Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
integration Remove extra suspense boundary for default next/dynamic (#67014) 2024-06-25 20:40:09 +02:00
lib Replace hasRedbox() (#67025) 2024-06-20 10:37:32 +02:00
production Test lint config after first-time setup (#67146) 2024-06-25 16:13:56 +02:00
unit chore: upgrade ts to 5.4 (#67171) 2024-06-25 23:12:28 +09:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
build-turbopack-build-tests-manifest.js Ensure production integration test results are uploaded (#63706) 2024-03-26 10:41:16 +01:00
build-turbopack-dev-tests-manifest.js Rename turbopack-tests-manifest to turbopack-dev-tests-manifest (#63409) 2024-03-19 10:26:14 +01:00
build-turbopack-tests-manifest.d.ts Update Turbopack test manifest from GitHub Actions artifact (#58394) 2023-11-24 16:48:12 +01:00
deploy-tests-manifest.json Fix noindex is missing on static not-found page (#67135) 2024-06-23 21:56:08 +02:00
get-test-filter.js fix e2e deployment test action (#66721) 2024-06-11 20:59:43 +00:00
jest-setup-after-env.ts Decrease default test timeouts (#56116) 2023-09-27 23:55:20 +00:00
ppr-tests-manifest.json Add timeout/retry handling for fetch cache (#66652) 2024-06-10 11:34:36 -07:00
readme.md
related-tests-manifest.json Reapply "chore(test): run related E2E deploy tests on PRs" (#64682) (#64712) 2024-04-19 11:02:43 +02:00
test-file.txt
turbopack-build-tests-manifest.json Add experimental flag for providing entry paths (#67134) 2024-06-23 10:21:10 +00:00
turbopack-dev-examples-manifest.json Fix last examples for Turbopack (#64020) 2024-04-03 16:02:52 +02:00
turbopack-dev-tests-manifest.json Update Turbopack development test manifest (#67093) 2024-06-21 10:27:34 +02:00

See Testing for more information on how you can run/write/debug tests for Next.js.