pinafore/src/routes/_components/compose/LazyComposeBox.html
2019-09-20 18:53:04 -07:00

17 lines
353 B
HTML

{#if composeBox}
<svelte:component this={composeBox} {realm} {hidden} />
{/if}
<script>
import { importComposeBox } from '../../_utils/asyncModules'
export default {
async oncreate () {
const composeBox = await importComposeBox()
this.set({ composeBox })
},
data: () => ({
composeBox: undefined
})
}
</script>