Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

refactor: Updated with Next.js's new dynamic import #88

Merged
merged 1 commit into from Dec 24, 2022

Conversation

tpatalas
Copy link
Owner

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. Implement loadable with lazy and suspense for next dynamic vercel/next.js#42589
  2. https://nextjs.org/docs/advanced-features/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
@tpatalas tpatalas merged commit 6c2ef70 into master Dec 24, 2022
@tpatalas tpatalas deleted the tpAtalas/feature/refactor-dynamic-import branch January 8, 2023 00:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant