Key links by URL as the svelte-spa-router link svelte action does not update correctly

This commit is contained in:
Andrew Kingston 2021-12-08 08:35:19 +00:00
parent 2c081c6557
commit cb1f870831
1 changed files with 14 additions and 12 deletions

View File

@ -79,18 +79,20 @@
{componentText}
</a>
{:else}
<a
use:linkable
href={url || "/"}
use:styleable={styles}
class:placeholder
class:bold
class:italic
class:underline
class="align--{align || 'left'} size--{size || 'M'}"
>
{componentText}
</a>
{#key url}
<a
use:linkable
href={url || "/"}
use:styleable={styles}
class:placeholder
class:bold
class:italic
class:underline
class="align--{align || 'left'} size--{size || 'M'}"
>
{componentText}
</a>
{/key}
{/if}
{/if}