malte-wessel/react-textfit

Not rendering again on 'max' property

Opened this issue · 1 comments

TextFit is not rendering again when 'max' in props is set later
I supposed to use 'max' to unify same font sizes on several TextFit components.

One of the hack is to set components' key = old_index + 10000*new_font_size to let react re-insert new right font size components.