rsnext/errors/invalid-dynamic-suspense.md
Jiachi Liu 7ea7c23866
Document usage of suspense option of next/dynamic (#28210)
## Documentation / Examples

- [x] Make sure the linting passes
- [x] Errors have helpful link attached, see `contributing.md` (for #28165, #27611)
- [x] Update test case
2021-08-18 01:21:22 +00:00

385 B

Invalid Usage of suspense Option of next/dynamic

Why This Error Occurred

<Suspense> is not allowed under legacy render mode when using React older than v18.

Possible Ways to Fix It

Remove suspense: true option in next/dynamic usages.