halfnelson / svelte-native-nativescript-ui

Svelte Native support for Nativescript UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Iterating over radialBarIndicator blocks the main thread and loses binding

ciutadellla opened this issue · comments

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}
`