Skip to content

Issue with compose element and composition #936

@Daniel-Glucksman

Description

@Daniel-Glucksman

If you use a compose element (who's activate function returns a promise) within a ViewModel, the router complete event seems to fire before the promise is resolved which causes a jumpiness in the navigation. If we remove the compose element from the view model everything works fine.

Is this behavior intended? Shouldn't the router wait for the entire view to compose include any composed elements ( before considering navigation complete?

The process looks like this:

  • Navigate from page A to Page B
  • Router.IsNavigating = true
  • Router.IsNavigating = false (at this point page A still shows as Page B hasn't fully been composed)
  • Page B is fully composed and shown.

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