Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(#40388):
next/dynamic
should only add default loading without s…
…uspense (#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>
- Loading branch information
Showing
2 changed files
with
35 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters