prateekbh / preact-async-route

Async route component for preact-router
MIT License
138 stars 14 forks source link

Could a method to handle loading failures be added? #15

Closed vpzomtrrfrt closed 6 years ago

vpzomtrrfrt commented 6 years ago

I'd like to be able to render a different component if getComponent fails. Currently, the page visually appears to remain loading forever

prateekbh commented 6 years ago

just curious isn't that doable in the getComponent function itself?

prateekbh commented 6 years ago

any thoughts @vpzomtrrfrt

vpzomtrrfrt commented 6 years ago

Yeah, that's a good point. I guess I'll just do that