gregberge / loadable-components

The recommended Code Splitting library for React ✂️✨
https://loadable-components.com
MIT License
7.7k stars 381 forks source link

Thread loading of undefined as loading error #945

Closed theKashey closed 1 year ago

theKashey commented 1 year ago

Extracted from #938

Right now loadable expects import to resolve into default or named export in presence of resolveComponent. In common cases the "existence" of imports is ensured by TypeScript, but there could be situations when the result will be still empty causing the following render to fail without triggering proper fallback branch.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.