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
To add some more detail to this, it seems to work properly for me on the initial mount, but when the text prop changes, it doesn't. I was lucky in circumstances that allowed me to realize that tidbit, I hope it helps. Might be something with componentDidUpdate vs. componentDidMount.
For now I'm getting around this issue by passing a new key prop (eg. key={Date.now()} on each render of the parent component (since a key prop change forces remount instead of just a normal update on all react components).
STR:
white-space: pre-wrap
The text was updated successfully, but these errors were encountered: