kaisermann / svelte-loadable

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

Feature proposal: throw error if no "error" slot? #21

Closed JohnnyFun closed 4 years ago

JohnnyFun commented 4 years ago

I didn't provide an error slot, so when I loaded my erroring component, there was no error in the console and a blank screen.

If the instance of Loadable doesn't have an "error" slot specified, should it simply throw the error?

kaisermann commented 4 years ago

Makes total sense! Thanks for the feature, released in v1.3.1 🎉