bsidelinger912 / shiitake

React Line clamp that won't get you fired
MIT License
100 stars 22 forks source link

Add resize ref #30

Open StipJey opened 5 years ago

StipJey commented 5 years ago

I would like to manage the component rerender myself. This is necessary when resizing the parent component.

bsidelinger912 commented 5 years ago

@StipJey I'm not quite following what the ask is here, can you please clarify?

StipJey commented 5 years ago

A way is needed to manually control the launch of the calculation. This is necessary when using a dynamic parent container.

bsidelinger912 commented 5 years ago

@StipJey looking back on this, it seems like maybe the size of a parent component is changing without a window resizing, and you want to tell Shiitake to re-run it's calculations manually when that happens?