Closed
Description
What problem does this feature solve?
Local register a async component by a factory function that return an object to handling loading state. But when the promise is rejected, there will be always show error component and no any way to reload it.
What does the proposed API look like?
- Recall the factory function on parent's next active/update hook when rejected
- [Recommend]Accept more options to handle loading state such as provide an 'on' to
listen replaced component's(loading/error) events and the event context allows to change loading state(rerend, of course)
Metadata
Metadata
Assignees
Labels
No labels