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
This is more of a question than an issue but I was not sure where else to post.
I enabled text balancing on a React component whose content can change based on its props. Due to how the props are computed, the content of the component changes when it is mounted. Due to JS event scheduling, the component content changes as the balance-text library is trying to balance the text, leading to window.getComputedStyle() to error out as the element is gone, and removeChild() to also error out.
Any suggestions on how to work around this problem? (which I admit is not really an issue with the library)
The text was updated successfully, but these errors were encountered:
This is more of a question than an issue but I was not sure where else to post.
I enabled text balancing on a React component whose content can change based on its props. Due to how the props are computed, the content of the component changes when it is mounted. Due to JS event scheduling, the component content changes as the balance-text library is trying to balance the text, leading to
window.getComputedStyle()
to error out as the element is gone, andremoveChild()
to also error out.Any suggestions on how to work around this problem? (which I admit is not really an issue with the library)
The text was updated successfully, but these errors were encountered: