Closed
Description
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
- 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.