d14da39fd6
### Changes #### Feature * Adopt `React.lazy` into `next/dynamic`, enable it when `options.suspense` is `true` * Support `next/dynamic` with `suspense=true` in SSR and SSG #### Tests | Scenario | Case | Behavior | |:----:|:----:|:----:| | basics | react 17 or 18 by default | dev/build error or pass | | blocking rendering | `reactRoot: true` + `concurrentFeatures: false` | dev/build pass | | concurrent rendering | `reactRoot: true` + `concurrentFeatures: true` | dev/build pass | ## Feature - [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` |
||
---|---|---|
.. | ||
fixtures | ||
babel-plugin-next-ssg-transform.unit.test.js | ||
find-config.unit.test.js | ||
find-page-file.unit.test.js | ||
get-node-options-without-inspect.unit.test.js | ||
getDisplayName.unit.test.js | ||
htmlescape.unit.test.js | ||
image-rendering.unit.test.js | ||
is-serializable-props.unit.test.js | ||
link-rendering.unit.test.js | ||
link-warnings.test.js | ||
loadGetInitialProps.unit.test.js | ||
mitt.unit.test.js | ||
next-babel-loader.unit.test.js | ||
next-babel.unit.test.js | ||
next-dynamic.test.js | ||
next-head-rendering.unit.test.js | ||
next-server-utils.unit.test.js | ||
next-swc.unit.test.js | ||
oxford-comma.unit.test.js | ||
page-route-sorter.unit.test.js | ||
parse-relative-url.unit.test.js | ||
phaseConstants.unit.test.js | ||
recursive-copy.unit.test.js | ||
recursive-delete.unit.test.js | ||
recursive-readdir.unit.test.js | ||
router-add-base-path.unit.test.js | ||
webpack-config-overrides.unit.test.js |