This repository has been archived by the owner on Dec 17, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Updated with
Next.js
's new dynamic import
Now Next.js does not reuiqre suspense with dynamic imports unlike React >=18 always has always required. Simply placing Loading state within the dynamic imports can show the loading state without Suspense component. Minor: Removed the unused types. Reference: 1. vercel/next.js#42589 2. https://nextjs.org/docs/advanced-features/dynamic-import
- Loading branch information
Showing
2 changed files
with
4 additions
and
12 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