kaisermann / svelte-loadable

Dynamically load a svelte component
MIT License
322 stars 13 forks source link

Programatically define inset point #32

Closed daslicht closed 4 years ago

daslicht commented 4 years ago

Hi, is it possible to load component without first defining the <Loadable/>

eg load component and then simply insert somewhere decided at runtime.

kaisermann commented 4 years ago

Hey @daslicht 👋

Yeah, it's possible. You wouldn't even need this component. Check the svelte:component special tag in svelte's doc: https://svelte.dev/docs#svelte_component (svelte-loadable uses it behind the scenes)

daslicht commented 4 years ago

Thank you ! But how do you add an unknown number of components ?