-
-
Notifications
You must be signed in to change notification settings - Fork 97
Description
I have an app that uses sizeme and CSS grid. When the app first renders (and on a hard or soft reload) the component that uses sizeme is squished, widthwise. It seems like the placeholder is taking its size estimate from grid.
The problem is that the size doesn't ever update until there's been a state change. Right now, as a work around, I'm updating state whenever the mouse enters the component, and this allows sizeme to start working (updating size when the screen is resized, using the entire width of the component instead of a single grid area).
I'm sorry I don't have a great way to illustrate this in a sandbox, but has anyone seen a component using sizeme get 'locked in' to a size until a state change?
adding noPlaceholder
doesn't change this behavior.