rsnext/packages
Jiachi Liu d14da39fd6
Support suspense in next dynamic (#27611)
### 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`
2021-08-13 21:08:45 +00:00
..
create-next-app v11.1.1-canary.6 2021-08-12 21:10:04 -07:00
eslint-config-next v11.1.1-canary.6 2021-08-12 21:10:04 -07:00
eslint-plugin-next v11.1.1-canary.6 2021-08-12 21:10:04 -07:00
next Support suspense in next dynamic (#27611) 2021-08-13 21:08:45 +00:00
next-bundle-analyzer v11.1.1-canary.6 2021-08-12 21:10:04 -07:00
next-codemod v11.1.1-canary.6 2021-08-12 21:10:04 -07:00
next-env v11.1.1-canary.6 2021-08-12 21:10:04 -07:00
next-mdx v11.1.1-canary.6 2021-08-12 21:10:04 -07:00
next-plugin-storybook v11.1.1-canary.6 2021-08-12 21:10:04 -07:00
next-polyfill-module v11.1.1-canary.6 2021-08-12 21:10:04 -07:00
next-polyfill-nomodule v11.1.1-canary.6 2021-08-12 21:10:04 -07:00
react-dev-overlay v11.1.1-canary.6 2021-08-12 21:10:04 -07:00
react-refresh-utils v11.1.1-canary.6 2021-08-12 21:10:04 -07:00