meteor-preloader
meteor-preloader copied to clipboard
onAfterAsync never called
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
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?