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
Most of the times one or more slots, without a previous defined background color, render as a transparent block.
Possible solution
This bug could be caused by the concurrence of the two useEffect hooks: one sets the array of the colors used (later) for the items without one; the other formats the items array with the correct color property.
The effect is that the items are, sometimes, formatted before the full usedColors array is populated.
Also the callback that renders the usageBar isn't triggered by the formatted items array changes, it runs only once.
The text was updated successfully, but these errors were encountered:
I'm gonna work on a performance efficient version for React v18 in the near future but at the moment seems that updating the project to v1.1.13 solves the issue.
Affected versions
v1.1.7
-v1.1.8
Bug description
Most of the times one or more slots, without a previous defined background color, render as a transparent block.
Possible solution
The effect is that the items are, sometimes, formatted before the full
usedColors
array is populated.The text was updated successfully, but these errors were encountered: