framework icon indicating copy to clipboard operation
framework copied to clipboard

Issue with compose element and composition

Open Daniel-Glucksman opened this issue 5 years ago • 0 comments

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.

Daniel-Glucksman avatar Jul 18 '19 10:07 Daniel-Glucksman