Iterating over radialBarIndicator blocks the main thread and loses binding
ciutadellla opened this issue · 0 comments
ciutadellla commented
`
let steps = [
{minimum: 0, maximum:1, fillColor: {someRandomColor()} },
{minimum: 2, maximum:3, fillColor: {someRandomColor()} },
{minimum: 4, maximum:5, fillColor: {someRandomColor()} },
{minimum: 5, maximum:6, fillColor: {someRandomColor()} },
{minimum: 7, maximum:8, fillColor: {someRandomColor()} },
]
{#each steps as {minimum,maximum,fillColor}}
<radialBarIndicator {minimum} {maximum} >
<barIndicatorStyle {fillColor} />
{/each}
`