Open jackread opened 3 years ago
there are an issue about that?
I also needed the placeholder to re-render however, as @jackread said, re-rendering of placeholders is blocked by that snippet.
In my case I needed the placeholders to re-render with new heights as the height of the lazy loaded components had changed.
My workaround was to add a key
prop to the LazyLoad
component which will force a re-render of the component and it's placeholder when the height changes.
I'm observing that my placeholder component is not re-rendering when the window size is changed, even when
resize={true}
is set.I think its because of this line?