aurelia / framework

The Aurelia 1 framework entry point, bringing together all the required sub-modules of Aurelia.
MIT License
11.76k stars 623 forks source link

Issue with compose element and composition #936

Open Daniel-Glucksman opened 5 years ago

Daniel-Glucksman commented 5 years ago

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: