Browse Source

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

gh-pages
Andrew Kingston 5 years ago
parent
commit
7886b383f5
  1. 26
      packages/client/src/components/app/Link.svelte

26
packages/client/src/components/app/Link.svelte

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

Loading…
Cancel
Save