pinafore/src/routes/_components/compose/LazyComposeBox.html

17 lines
353 B
HTML
Raw Normal View History

2019-09-20 18:53:04 -07:00
{#if composeBox}
<svelte:component this={composeBox} {realm} {hidden} />
{/if}
2019-06-01 17:01:50 -07:00
<script>
import { importComposeBox } from '../../_utils/asyncModules'
export default {
2019-09-20 18:53:04 -07:00
async oncreate () {
const composeBox = await importComposeBox()
this.set({ composeBox })
},
2019-06-01 17:01:50 -07:00
data: () => ({
2019-09-20 18:53:04 -07:00
composeBox: undefined
2019-06-01 17:01:50 -07:00
})
}
</script>