Is it possible to fire a callback when all components registered with registerAsync are loaded? So far I resorted to a dirty hack (which is not fully correct, but gives an idea what I want to do) shown below.
The reason I want this is that I want to avoid flickering when N different components are loaded individually. I want all of them to render at once and at the same time if a component is not used I'ld like to not download it's chunk.
Is it possible to fire a callback when all components registered with
registerAsync
are loaded? So far I resorted to a dirty hack (which is not fully correct, but gives an idea what I want to do) shown below.Is there a cleaner way to do that?
The reason I want this is that I want to avoid flickering when N different components are loaded individually. I want all of them to render at once and at the same time if a component is not used I'ld like to not download it's chunk.