{"action":"created","issue":{"url":"https://api.github.com/repos/InsertKoinIO/koin/issues/231","repository_url":"https://api.github.com/repos/InsertKoinIO/koin","labels_url":"https://api.github.com/repos/InsertKoinIO/koin/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/InsertKoinIO/koin/issues/231/comments","events_url":"https://api.github.com/repos/InsertKoinIO/koin/issues/231/events","html_url":"https://github.com/InsertKoinIO/koin/issues/231","id":360212343,"node_id":"MDU6SXNzdWUzNjAyMTIzNDM=","number":231,"title":"Create scopes with arguments ","user":{"login":"RomanKapshuk","id":16819254,"node_id":"MDQ6VXNlcjE2ODE5MjU0","avatar_url":"https://avatars2.githubusercontent.com/u/16819254?v=4","gravatar_id":"","url":"https://api.github.com/users/RomanKapshuk","html_url":"https://github.com/RomanKapshuk","followers_url":"https://api.github.com/users/RomanKapshuk/followers","following_url":"https://api.github.com/users/RomanKapshuk/following{/other_user}","gists_url":"https://api.github.com/users/RomanKapshuk/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKapshuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKapshuk/subscriptions","organizations_url":"https://api.github.com/users/RomanKapshuk/orgs","repos_url":"https://api.github.com/users/RomanKapshuk/repos","events_url":"https://api.github.com/users/RomanKapshuk/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKapshuk/received_events","type":"User","site_admin":false},"labels":[{"id":758958453,"node_id":"MDU6TGFiZWw3NTg5NTg0NTM=","url":"https://api.github.com/repos/InsertKoinIO/koin/labels/koin-core","name":"koin-core","color":"bfd4f2","default":false},{"id":906961653,"node_id":"MDU6TGFiZWw5MDY5NjE2NTM=","url":"https://api.github.com/repos/InsertKoinIO/koin/labels/type:feature-proposal","name":"type:feature-proposal","color":"f2b08e","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-14T08:47:18Z","updated_at":"2018-10-08T19:09:37Z","closed_at":null,"author_association":"NONE","body":"How can I create a scope with given arguments? E.g if I want to create a scope in onCreate of Activity, and want to get its scope in fragments on this activity without passing parameters in inject delegate? Maybe something like parent scope mechanism?\r\n```\r\n// In activity something like\r\ngetOrCreateScope(\"myActivity\")) { parametersOf(this, 'SomeKeyOrFlagOrElse') }\r\n```\r\n\r\n```\r\n// in module\r\nscope(\"myActivity\") {\r\nit.getScopeParam<AppCompatActivity>()\r\n}\r\n\r\nscope(\"fragmentScope\") {\r\nSomeObjectDependsOnActivity(activity = get())\r\n}\r\n\r\n```\r\n\r\n```\r\n// in fragment \r\ngetOrCreateScope(\"fragmentScope\", parent = getScope(\"myActivity\"))\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/InsertKoinIO/koin/issues/comments/427947078","html_url":"https://github.com/InsertKoinIO/koin/issues/231#issuecomment-427947078","issue_url":"https://api.github.com/repos/InsertKoinIO/koin/issues/231","id":427947078,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzk0NzA3OA==","user":{"login":"Tapchicoma","id":1595262,"node_id":"MDQ6VXNlcjE1OTUyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/1595262?v=4","gravatar_id":"","url":"https://api.github.com/users/Tapchicoma","html_url":"https://github.com/Tapchicoma","followers_url":"https://api.github.com/users/Tapchicoma/followers","following_url":"https://api.github.com/users/Tapchicoma/following{/other_user}","gists_url":"https://api.github.com/users/Tapchicoma/gists{/gist_id}","starred_url":"https://api.github.com/users/Tapchicoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tapchicoma/subscriptions","organizations_url":"https://api.github.com/users/Tapchicoma/orgs","repos_url":"https://api.github.com/users/Tapchicoma/repos","events_url":"https://api.github.com/users/Tapchicoma/events{/privacy}","received_events_url":"https://api.github.com/users/Tapchicoma/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T19:09:37Z","updated_at":"2018-10-08T19:09:37Z","author_association":"NONE","body":"I am also interested in this feature. This will allow to provide scope configuration that will be used in lifetime of scope."}}
{"actor":{"display_login":"Tapchicoma"}}