{"action":"closed","issue":{"url":"https://api.github.com/repos/meteor-vue/vue-meteor-tracker/issues/44","repository_url":"https://api.github.com/repos/meteor-vue/vue-meteor-tracker","labels_url":"https://api.github.com/repos/meteor-vue/vue-meteor-tracker/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/meteor-vue/vue-meteor-tracker/issues/44/comments","events_url":"https://api.github.com/repos/meteor-vue/vue-meteor-tracker/issues/44/events","html_url":"https://github.com/meteor-vue/vue-meteor-tracker/issues/44","id":372297793,"node_id":"MDU6SXNzdWUzNzIyOTc3OTM=","number":44,"title":"Pass variable into MeteorData's query","user":{"login":"nilsi","id":793881,"node_id":"MDQ6VXNlcjc5Mzg4MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/793881?v=4","gravatar_id":"","url":"https://api.github.com/users/nilsi","html_url":"https://github.com/nilsi","followers_url":"https://api.github.com/users/nilsi/followers","following_url":"https://api.github.com/users/nilsi/following{/other_user}","gists_url":"https://api.github.com/users/nilsi/gists{/gist_id}","starred_url":"https://api.github.com/users/nilsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilsi/subscriptions","organizations_url":"https://api.github.com/users/nilsi/orgs","repos_url":"https://api.github.com/users/nilsi/repos","events_url":"https://api.github.com/users/nilsi/events{/privacy}","received_events_url":"https://api.github.com/users/nilsi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-21T09:54:42Z","updated_at":"2018-10-21T10:49:08Z","closed_at":"2018-10-21T10:49:08Z","author_association":"NONE","body":"Hi,\r\n\r\nThanks for som great updates to this libraray.\r\n\r\nIm trying to do this:\r\n\r\n```\r\n<div class=\"column\" v-for=\"id in data.listItems\" :key=\"id\">\r\n    <MeteorSub name=\"productByReadableId\" :parameters=\"[parseInt(id)]\" >\r\n        <template slot-scope=\"{ loading }\">\r\n            <MeteorData\r\n                :query=\"getProduct(id)\"\r\n                class=\"product\">\r\n                <template slot-scope=\"{ data: product }\">\r\n                    {{product}}\r\n                </template>\r\n            </MeteorData>\r\n        </template>\r\n    </MeteorSub>\r\n</div>\r\n```\r\n\r\nAnd then:\r\n\r\n```\r\n  methods: {\r\n   ...\r\n    getProduct(id) {\r\n      return Products.findOne({ readableId: id });\r\n    }\r\n  },\r\n```\r\n\r\nWhich gives me the following error:\r\n`Invalid prop: type check failed for prop \"query\". Expected Function, got Undefined`\r\n\r\nIf I remove the parameter and hardcode my id in the `findOne` function it works as I expected. Is there any way to pass a variable into my getProduct function?"}}
{"actor":{"display_login":"nilsi"}}