fix(#40388): `next/dynamic` should only add default loading without suspense (#40397)
The PR fixes #40388.
Currently, `next/dynamic` will try to provide a default `loading` to the
`loadableOptions` even when `suspense` is enabled, thus triggering the
incorrect warning. The PR fixes that. The corresponding integration test
case is also updated.
cc @huozhi
## Bug
- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
Co-authored-by:
huozhi <inbox@huozhi.im>
Showing
Please
register
or
sign in
to comment