You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will help to avoid layout shifting during component mounting.
As alternative we can add another property e.g. parentSizeMeasured (or a way to render placeholder in place of original Component) to allow Component to provide stub view, till we get actual size.
If this feature will be accepted, I can prepare PR
The text was updated successfully, but these errors were encountered:
@williaster Added a PR for these props here. First time contributing but let me know if I'm missing anything!
williaster
changed the title
Feature: specify default width/height for withParentSize from @fx/responsive
Feature: specify default width/height for withParentSize from @visx/responsive
Oct 2, 2020
Hello, I would like to suggest to add a way to specify default width/height for
withParentSize
enahncer from@fx/repsponsive
.e.g.:
This will help to avoid layout shifting during component mounting.
As alternative we can add another property e.g.
parentSizeMeasured
(or a way to render placeholder in place of originalComponent
) to allow Component to provide stub view, till we get actual size.If this feature will be accepted, I can prepare PR
The text was updated successfully, but these errors were encountered: