Icon component flashing on load. Suspense, how to?
Unanswered
dperolio posted this in #help-forum
dperolioOP
So I'm doing:
<Suspense fallback={<div>loading</div>}>
<IconComponent className={className} {...props} />
</Suspense>but it's not showing the loading. With and without the suspense, there is a flash as the icon "loads" in (I'm using useState and dynamically importing and setting the IconComponent). Is there any way to prevent this flashing?