gregberge / loadable-components

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

Fallback running even when component has previously loaded #1002

Open cosullivan opened 2 months ago

cosullivan commented 2 months ago

Hi,

I am using a fallback component and each time the component loads, the fallback is displayed first. Is there a way to cache the result such that it only runs the first time when its actually loading?

Thanks, Cain.

theKashey commented 2 months ago

Related to #997 - we have a cache for loaded components, but it's not always used properly.