{#if getContext('isEditing')} {#await getRecord({ did, collection, rkey }) then record} {#snippet child(recordData)} {@render child(recordData)} {/snippet} {:catch error} {#snippet child(recordData)} {@render child(recordData)} {/snippet} {/await} {:else} {@render child(data?.[collection]?.[rkey])} {/if}