{"action":"closed","issue":{"url":"https://api.github.com/repos/percolatestudio/publish-counts/issues/94","repository_url":"https://api.github.com/repos/percolatestudio/publish-counts","labels_url":"https://api.github.com/repos/percolatestudio/publish-counts/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/percolatestudio/publish-counts/issues/94/comments","events_url":"https://api.github.com/repos/percolatestudio/publish-counts/issues/94/events","html_url":"https://github.com/percolatestudio/publish-counts/issues/94","id":200417457,"number":94,"title":"RangeError: Maximum call stack size exceeded","user":{"login":"24thsaint","id":8315544,"avatar_url":"https://avatars.githubusercontent.com/u/8315544?v=3","gravatar_id":"","url":"https://api.github.com/users/24thsaint","html_url":"https://github.com/24thsaint","followers_url":"https://api.github.com/users/24thsaint/followers","following_url":"https://api.github.com/users/24thsaint/following{/other_user}","gists_url":"https://api.github.com/users/24thsaint/gists{/gist_id}","starred_url":"https://api.github.com/users/24thsaint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/24thsaint/subscriptions","organizations_url":"https://api.github.com/users/24thsaint/orgs","repos_url":"https://api.github.com/users/24thsaint/repos","events_url":"https://api.github.com/users/24thsaint/events{/privacy}","received_events_url":"https://api.github.com/users/24thsaint/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-12T16:40:26Z","updated_at":"2017-01-12T16:45:24Z","closed_at":"2017-01-12T16:45:24Z","body":"Hi. Thank you for this package percolatestudio. I am having errors when using it. I'm using it this way:\r\n\r\nServer-side publication\r\n```javascript\r\nimport { Counts } from 'meteor/tmeasday:publish-counts'\r\n...\r\nMeteor.publish('books', function () {\r\n  Counts.publish(this, 'booksCount', Book.collection.find({}))\r\n  return Book.collection.find({})\r\n})\r\n```\r\n\r\nClient-side\r\n```javascript\r\nimport { Counts } from 'meteor/tmeasday:publish-counts'\r\n...\r\n  constructor() {\r\n      MeteorObservable.subscribe('books').subscribe(() => {\r\n        console.log(Counts.get('booksCount'))\r\n      })\r\n  }\r\n```\r\nBut then I am getting this error:\r\n```\r\nI20170113-00:32:01.823(8)? Exception from sub books id hCMbYC4KPwbBkKcxn RangeError: Maximum call stack size exceeded\r\nI20170113-00:32:01.824(8)?     at Object.EJSON.isBinary (packages/ejson.js:383:27)\r\nI20170113-00:32:01.824(8)?     at Object.EJSON.clone (packages/ejson.js:494:13)\r\nI20170113-00:32:01.825(8)?     at packages/ejson.js:521:22\r\nI20170113-00:32:01.825(8)?     at Function._.each._.forEach (packages/underscore.js:147:22)\r\nI20170113-00:32:01.825(8)?     at Object.EJSON.clone (packages/ejson.js:520:5)\r\nI20170113-00:32:01.825(8)?     at packages/ejson.js:521:22\r\nI20170113-00:32:01.825(8)?     at Function._.each._.forEach (packages/underscore.js:147:22)\r\nI20170113-00:32:01.825(8)?     at Object.EJSON.clone (packages/ejson.js:520:5)\r\nI20170113-00:32:01.825(8)?     at packages/ejson.js:521:22\r\nI20170113-00:32:01.826(8)?     at Function._.each._.forEach (packages/underscore.js:147:22)\r\n```\r\n\r\nI have Meteor version: 1.4.2.3"}}
{"actor":{"display_login":"24thsaint"}}