|
|
|
|
|
by noir_lord
1686 days ago
|
|
Not to mention it takes reactivity to new heights while adding amazingly little actual syntax. When property changes, the fetch refires, loading appears until the fetch resolves then it displays whatever array someFetch resolved to. I came from Vue and that plus the way Svelte does stores (literally nothing special about them) was a breath of fresh air. <div>
{#await someFetch(property)}
<div>Loading...</div>
{:then data}
{#each data as item, index}
<div>{item}</div>
{/each}
{/await}
</div>
|
|