Closed paul-vd closed 2 years ago
Hi, @PaulPCIO , sorry didn't have enought time to get to the repo. Will check, thanks for rising! However, AFAIK, it should render dynamic components
I faced the same issue. I have made the fix for it. How do i raise a pull request?
while (i < componentsToRenderLength && !isNil(children[i])) {
containers[i] = true;
if (Array.isArray(children[i])) {
for (const index in children[i]) {
const baby = children[i][index];
newComponentsToRender.push(
<div key={`${i}${index}`} style={{ height: '100%', width: '100%' }}>
{React.cloneElement(baby, { ...baby.props })}
</div>
);
}
} else {
newComponentsToRender.push(
<div key={i} style={{ height: '100%', width: '100%' }}>
{React.cloneElement(children[i], { ...children[i].props })}
</div>
);
}
i++;
}
Hi all. For those who experienced the issue - try to update to version 2.1.0. Many thanks to @LeoneBacciu for a fix.