Bug description
Trying to use LazyLoadComponent with custom placeholder, which is Styled Component. This results in my component to be wrapped by unnecessary <span> element when doing SSR. This behavior is not being reproduced when using usual <div> as a wrapper for placeholder.
Bug description Trying to use
LazyLoadComponent
with customplaceholder
, which is Styled Component. This results in my component to be wrapped by unnecessary<span>
element when doing SSR. This behavior is not being reproduced when using usual<div>
as a wrapper for placeholder.To Reproduce
When doing SSR
<div>
will be wrapped by<span>
.Expected behavior When doing SSR LazyLoadComponent should render
<Wrapper>{children}</Wrapper>
as<div>{children}</div>
with no additional markup.Technical details: