{#if query.status === 'pending'}
Loading...
{/if} {#if query.status === 'error'}Error :(
{/if} {#if query.status === 'success'} {@const homeworldUrlParts = query.data.homeworld.split('/').filter(Boolean)} {@const homeworldId = homeworldUrlParts[homeworldUrlParts.length - 1]}Born: {query.data.birth_year}
Eyes: {query.data.eye_color}
Hair: {query.data.hair_color}
Height: {query.data.height}
Mass: {query.data.mass}
Homeworld: