torayeff
torayeff

Reputation: 9702

How does meteor.js update template data?

Imagine, I have this collection post.js :

{
  text: 'Some long text, article',
  likesCount: 10
}

And template file post.html:

<template name='post'>
  Article - {{text}}
  The number of likes - {{likesCount}}
</template>

Whenever any user likes post, the data is reactively updated. Does text is also transferred from database to client on every likesCount update or only likesCount is transferred? This will cause high internet traffic where internet connection cost is high.

Upvotes: 1

Views: 110

Answers (1)

Geoffrey Booth
Geoffrey Booth

Reputation: 7366

As I understand it, Meteor only transfers the fields that change. You can confirm this for yourself with the Network tab in Developer Tools.

Upvotes: 1

Related Questions