Meteor stop template updating after Rendered

Can Meteor stop a template from reactively updating itself after the initial render.

I have an app which displays images in a template. But I don’t want any additional images that have been inserted into the collections to appear in the template unless the user does a reload.

In my template’s helper I get the images by:

`var usersImages = Meteor.users.find({_id:{$ne: userID}},{ImagesUploaded: {$elemMatch: {editStatus:true}}}).fetch();`

How can I now prevent further images being added to the template now?

One way is to add a createdAt to each document and modify your find to restrict to “<= current time”, which you can set in the onCreated callback.

1 Like

Another way is, use method instead of publication.

1 Like