I problem with load order
of template level
like this:
<template name...>
...........
</template>
// JS
Template.myTpl.onRendered(function(){
// do something with database
console.log('on rendered');
})
Template.myTpl.helpers({
data: function (){
// do something and get other data from `onRendered` such as Reactive State
console.log('helper');
return ....;
}
})
// Show
helper
on rendered
Sometime helpers
load first???
I don’t understand, I think that onRendered load first
and helper load second
.
Please help me.