mirror of https://github.com/sveltejs/svelte
Refactored the function into a reactive declaration. Added similar reactive declaration in `Item.svelte` too. Note that the conditional is slightly different in each case: - in `Summary.svelte`, the API response gives correct type 'ask' for 'Ask HN'-type posts, - but in `Item.svelte`, a different API call resolves these 'Ask HN'-type posts with type 'link'. In both cases, however, 'item.domain' is undefined.pull/4640/head
parent
2029de45ba
commit
bd73d8decb
Loading…
Reference in new issue