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
There is a style object that gets freshly created on the fly on every render. This makes the wrapped component also render every time again, because the object identity changes.
The solution would be to “cache” the style object in the component and only recompute it if necessary. (E.g. by means of componentWillReceiveProps or the like.)
The text was updated successfully, but these errors were encountered:
There is a style object that gets freshly created on the fly on every render. This makes the wrapped component also render every time again, because the object identity changes.
The solution would be to “cache” the style object in the component and only recompute it if necessary. (E.g. by means of
componentWillReceiveProps
or the like.)The text was updated successfully, but these errors were encountered: