{"action":"closed","issue":{"url":"https://api.github.com/repos/ractivejs/ractive/issues/1945","labels_url":"https://api.github.com/repos/ractivejs/ractive/issues/1945/labels{/name}","comments_url":"https://api.github.com/repos/ractivejs/ractive/issues/1945/comments","events_url":"https://api.github.com/repos/ractivejs/ractive/issues/1945/events","html_url":"https://github.com/ractivejs/ractive/issues/1945","id":71422952,"number":1945,"title":"Components initialisation function","user":{"login":"mmrosa","id":1613623,"avatar_url":"https://avatars.githubusercontent.com/u/1613623?v=3","gravatar_id":"","url":"https://api.github.com/users/mmrosa","html_url":"https://github.com/mmrosa","followers_url":"https://api.github.com/users/mmrosa/followers","following_url":"https://api.github.com/users/mmrosa/following{/other_user}","gists_url":"https://api.github.com/users/mmrosa/gists{/gist_id}","starred_url":"https://api.github.com/users/mmrosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmrosa/subscriptions","organizations_url":"https://api.github.com/users/mmrosa/orgs","repos_url":"https://api.github.com/users/mmrosa/repos","events_url":"https://api.github.com/users/mmrosa/events{/privacy}","received_events_url":"https://api.github.com/users/mmrosa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ractivejs/ractive/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-04-27T22:45:55Z","updated_at":"2015-04-28T20:27:56Z","closed_at":"2015-04-28T20:27:56Z","body":"I'm trying ractivejs components functionality and i would like to resolve the component that must be rendered based on the state of the ractive instance.\r\n\r\nThis scenario is exacly what is specified on [components advanced configuration](http://docs.ractivejs.org/latest/advanced-configuration#components), but for some reason on my [tests](https://jsfiddle.net/hcdabfp5/) the initialisation function is invoked without data argument.\r\n\r\nSo, we have 3 possible scenarios:\r\n* I'm using this feature in a wrong way\r\n* Bug in the documentation \r\n* Bug in the code\r\n\r\nCan anyone check it, please?"}}