Skip to content

AsyncState mixin - wait for all routes to finish async operations #176

Closed
@jakobz

Description

@jakobz

I have several RouteHandlers in hierarchy that use AsyncState mixin. When transitions occurs, these RouteHandlers renders immediately after their async operations completed. This leads visually to "partial" transitions, when components appears sequentially. Even with ajax-delay spinners in place of loading components, it looks glitchy.

It would be nice to have an option to transition at once, after all async operations completed. Until there are operations to finish, app should not navigate to a new page, so user will not see a blank or incomplete page.

It will be also useful to have an ability to render an progress indicator somewhere on the page. This can be supported with something like props.isLoading on the parent route, which is true until all children async operations are done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions