meteor-preloader icon indicating copy to clipboard operation
meteor-preloader copied to clipboard

onAfterAsync never called

Open timothyarmes opened this issue 9 years ago • 1 comments

onAfterAsync never called is never called.

Looking at the code, it seems that you've forgotten to add it to the collection of Router Libraries

timothyarmes avatar Mar 04 '15 09:03 timothyarmes

Nope - it's there:

/lib/client_route_controller.js:47

...
loadAsync = function () {
        var asyncLibs          = thisRoute._libs.sources.async,
            beforeAsyncHandler = thisRoute._libs.onBeforeAsync,
            asyncHandler       = thisRoute._libs.onAsync,
--->        afterAsyncHandler  = thisRoute._libs.onAfterAsync;
...

/lib/client_route_controller.js:118

...
if ( afterAsyncHandler ) {
    afterAsync = afterAsyncHandler( asyncLib );
}

if ( afterAsync ) {
...

How do you call it?

MiroHibler avatar Apr 08 '15 08:04 MiroHibler