I want to show spinner waiting when I generate report for along time.
Example
// Template
{{#if data}}
Show result
{{else}}
No result
{{/if}}
// Helper
Template.myTemplate.helpers({
data: function(){
var data = ..............
// get data from database and calculate
// waiting
if(data.count() > 0){
return data;
}else{
return false;
}
}
})
Now I see why Session should not be in documentation
And set that waiting variable true on same spot as u are instructing app to start generating report
If you really need to use Session, than use Session.setDefault in onRendered, to not overwrite it for no reason.