ShinyChang/React-Text-Truncate

error forceUpdate while resizing.

davelab opened this issue · 1 comments

Hi I get this warning message when i resize the browser window:

Warning: forceUpdate(...): Can only update a mounted or mounting component. This usually means you called forceUpdate() on an unmounted component. This is a no-op. Please check the code for the TextTruncate component.

I saw that you listen the resize window event to foce the render. I don't understand why.

Hi @davelab,

This component may be used in fluid layout. It will be broken if no re-calculator the width of container when mobile device orientation changed.

But I can not reproduce your problem, could you give me a mvp to reproduce it?