Skip to content

[v1.1.8] Color fallback property is not always correctly defined #2

Closed
@ChrisUser

Description

@ChrisUser

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions