Meteor - how to reactively render arrays instead of cursors (eg. the result of fetch() instead of find() ) -
i have meteor collection of items, need search/sort/ordering according rules complex mongodb/minimongo query.
for example, consider search algorithm returns results in order of relevance, runs on client speed.
in order render items, call mycollection.find().fetch(), sort results , pass them template.
this means time 1 of items in search results changes, or item added/removed, of items in search results re-rendered.
is there way prevent items being re-rendered when 1 changed/added/removed?
i think if change 'mycollection.find().fetch()' meteor.call('methodtofetchmycollectioninmodel'), , make sure have meteor.subscribe('mycollection') in client, client reactive 'change/add/remove'.
Comments
Post a Comment