Meteor: Spacebars not updating on session-value change -
i have html-file in meteor
{{#if thevalue}} {{> one}} {{else}} {{> two}} {{/if}}
and helper
'thevalue': session.get('thevalue') //returns true or false
my problem when session-value changes, if/else-bracktes spacebars not change it. thought session-values reactive...but maybe have sort of misconception how works.
try write helper function so
'thevalue': function () { return session.get('thevalue'); }
see docs here more.
Comments
Post a Comment