{"action":"created","issue":{"url":"https://api.github.com/repos/timbrandin/meteor-slick/issues/2","repository_url":"https://api.github.com/repos/timbrandin/meteor-slick","labels_url":"https://api.github.com/repos/timbrandin/meteor-slick/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/timbrandin/meteor-slick/issues/2/comments","events_url":"https://api.github.com/repos/timbrandin/meteor-slick/issues/2/events","html_url":"https://github.com/timbrandin/meteor-slick/issues/2","id":135058687,"number":2,"title":"Has anyone actually managed to make this work with images loaded from a collection?","user":{"login":"Achtel","id":16496692,"avatar_url":"https://avatars.githubusercontent.com/u/16496692?v=3","gravatar_id":"","url":"https://api.github.com/users/Achtel","html_url":"https://github.com/Achtel","followers_url":"https://api.github.com/users/Achtel/followers","following_url":"https://api.github.com/users/Achtel/following{/other_user}","gists_url":"https://api.github.com/users/Achtel/gists{/gist_id}","starred_url":"https://api.github.com/users/Achtel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Achtel/subscriptions","organizations_url":"https://api.github.com/users/Achtel/orgs","repos_url":"https://api.github.com/users/Achtel/repos","events_url":"https://api.github.com/users/Achtel/events{/privacy}","received_events_url":"https://api.github.com/users/Achtel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-20T10:31:31Z","updated_at":"2016-02-20T16:27:00Z","closed_at":null,"body":"I'm struggling to initialise slick properly as the onRendered .slick call doesn't work with Meteor's asynchronous loading of subscriptions...\r\n\r\nSo `<template name=\"image\">\r\n  <div id=\"carousel\">\r\n    <div id=\"demo-box\"><img src=\"../../img/brush.jpg\" /></div>\r\n    <div id=\"demo-box\"><img src=\"../../img/drill.jpg\" /></div>\r\n    <div id=\"demo-box\"><img src=\"../../img/hammer.jpg\" /></div>\r\n    <div id=\"demo-box\"><img src=\"../../img/shovel.jpg\" /></div>\r\n    <div id=\"demo-box\"><img src=\"../../img/spanner.jpg\" /></div>\r\n    <div id=\"demo-box\"><img src=\"../../img/tape.jpg\" /></div>\r\n  </div>\r\n</template>`\r\n\r\nworks fine but `<template name=\"image\">\r\n  {{#if Template.subscriptionsReady}}\r\n    {{slickInit}}\r\n    <div id=\"carousel\">\r\n      {{#each images}}\r\n        <div id=\"demo-box\"><img src=\"{{url}}\" /></div>\r\n      {{/each}}\r\n    </div>  \r\n  {{else}}\r\n    <div>Loading...</div>\r\n  {{/if}}\r\n</template>`\r\n\r\ndoesn't... It just shows all images at once. I believe that's because they only get loaded _after_ the onRendered call has completed.\r\n\r\nHas anyone managed to make this work?"},"comment":{"url":"https://api.github.com/repos/timbrandin/meteor-slick/issues/comments/186640735","html_url":"https://github.com/timbrandin/meteor-slick/issues/2#issuecomment-186640735","issue_url":"https://api.github.com/repos/timbrandin/meteor-slick/issues/2","id":186640735,"user":{"login":"timbrandin","id":1715834,"avatar_url":"https://avatars.githubusercontent.com/u/1715834?v=3","gravatar_id":"","url":"https://api.github.com/users/timbrandin","html_url":"https://github.com/timbrandin","followers_url":"https://api.github.com/users/timbrandin/followers","following_url":"https://api.github.com/users/timbrandin/following{/other_user}","gists_url":"https://api.github.com/users/timbrandin/gists{/gist_id}","starred_url":"https://api.github.com/users/timbrandin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbrandin/subscriptions","organizations_url":"https://api.github.com/users/timbrandin/orgs","repos_url":"https://api.github.com/users/timbrandin/repos","events_url":"https://api.github.com/users/timbrandin/events{/privacy}","received_events_url":"https://api.github.com/users/timbrandin/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T16:27:00Z","updated_at":"2016-02-20T16:27:00Z","body":"Yeah, I usually initialize Slick from a template per item, and make sure to reset the whole batch. Or you could do something smart and add/remove items. But the simplest method is just to reset and reconstruct. I'm looking forward to new methods that are as good but with better reactive methods behind them, rather than the correct afterwards approach."}}