{"action":"created","issue":{"url":"https://api.github.com/repos/Ekito/koin/issues/58","repository_url":"https://api.github.com/repos/Ekito/koin","labels_url":"https://api.github.com/repos/Ekito/koin/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/Ekito/koin/issues/58/comments","events_url":"https://api.github.com/repos/Ekito/koin/issues/58/events","html_url":"https://github.com/Ekito/koin/pull/58","id":298109057,"number":58,"title":"Allow retrieving ViewModels from stores by key","user":{"login":"amaksoft","id":6459910,"avatar_url":"https://avatars0.githubusercontent.com/u/6459910?v=4","gravatar_id":"","url":"https://api.github.com/users/amaksoft","html_url":"https://github.com/amaksoft","followers_url":"https://api.github.com/users/amaksoft/followers","following_url":"https://api.github.com/users/amaksoft/following{/other_user}","gists_url":"https://api.github.com/users/amaksoft/gists{/gist_id}","starred_url":"https://api.github.com/users/amaksoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaksoft/subscriptions","organizations_url":"https://api.github.com/users/amaksoft/orgs","repos_url":"https://api.github.com/users/amaksoft/repos","events_url":"https://api.github.com/users/amaksoft/events{/privacy}","received_events_url":"https://api.github.com/users/amaksoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-18T19:06:26Z","updated_at":"2018-02-20T17:52:46Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/Ekito/koin/pulls/58","html_url":"https://github.com/Ekito/koin/pull/58","diff_url":"https://github.com/Ekito/koin/pull/58.diff","patch_url":"https://github.com/Ekito/koin/pull/58.patch"},"body":"Sometimes it is necessary to store multiple instances of same `ViewModel` type in the one `ViewModelStore`. The only way to resolve this case is to call `ViewModelProvider.get(String key, Class<T> modelClass)` with a String key parameter. I think we need to add a key parameter to `viewmodel` extension if possible."},"comment":{"url":"https://api.github.com/repos/Ekito/koin/issues/comments/367061384","html_url":"https://github.com/Ekito/koin/pull/58#issuecomment-367061384","issue_url":"https://api.github.com/repos/Ekito/koin/issues/58","id":367061384,"user":{"login":"arnaudgiuliani","id":2360688,"avatar_url":"https://avatars1.githubusercontent.com/u/2360688?v=4","gravatar_id":"","url":"https://api.github.com/users/arnaudgiuliani","html_url":"https://github.com/arnaudgiuliani","followers_url":"https://api.github.com/users/arnaudgiuliani/followers","following_url":"https://api.github.com/users/arnaudgiuliani/following{/other_user}","gists_url":"https://api.github.com/users/arnaudgiuliani/gists{/gist_id}","starred_url":"https://api.github.com/users/arnaudgiuliani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnaudgiuliani/subscriptions","organizations_url":"https://api.github.com/users/arnaudgiuliani/orgs","repos_url":"https://api.github.com/users/arnaudgiuliani/repos","events_url":"https://api.github.com/users/arnaudgiuliani/events{/privacy}","received_events_url":"https://api.github.com/users/arnaudgiuliani/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T17:52:46Z","updated_at":"2018-02-20T17:52:46Z","author_association":"OWNER","body":"Hello,\r\n\r\nOk I see. Do you have a concrete example on using different instances of the same ViewModel?"}}
{"actor":{"display_login":"arnaudgiuliani"}}