Re-render a template in meteor

Hi,

I have modal window that uses a facebook plugin. I need to try and fresh/reload the template. At the moment I am using Meteor._reload.reload(); but he flash of the refresh is very ugly.

Is there a way to refresh a template within meteor?

Thanks,

I am not aware of such command.

Better describe why you would need it.
99% there is better way

This is quite a vague question since it doesn’t explain what plugin you are using or why you need to refresh manually, but in general you should use a reactive variable or Session to store data that will be changing over time. Then, when you use this value in a helper, the template will update automatically with the new value. See the step of the tutorial about Session: https://www.meteor.com/tutorials/blaze/temporary-ui-state

1 Like

Sorry I have now updated here

Sorry I have updated here