Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to fill "success" slot #2

Closed
kaisermann opened this issue Jun 19, 2018 · 2 comments
Closed

Allow to fill "success" slot #2

kaisermann opened this issue Jun 19, 2018 · 2 comments

Comments

@kaisermann
Copy link
Owner

kaisermann commented Jun 19, 2018

Maybe it'd be interesting to allow to customize the success slot instead of just rendering the dynamic component

<Loadable {loader} bind:component>
	<div slot="success">
		<svelte:component this={component} customProps={props}/>
	</div>
</Loadable>
@EmilTholin
Copy link

That would be cool. Just make sure not to run into this annoying behavior.

@kaisermann
Copy link
Owner Author

I think svelte handles this case (at least the basic one) for us because component start as null and will not be instantiated (I could be wrong though...) 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants