{"action":"opened","issue":{"url":"https://api.github.com/repos/mobxjs/mobx.dart/issues/10","repository_url":"https://api.github.com/repos/mobxjs/mobx.dart","labels_url":"https://api.github.com/repos/mobxjs/mobx.dart/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/mobxjs/mobx.dart/issues/10/comments","events_url":"https://api.github.com/repos/mobxjs/mobx.dart/issues/10/events","html_url":"https://github.com/mobxjs/mobx.dart/issues/10","id":396151127,"node_id":"MDU6SXNzdWUzOTYxNTExMjc=","number":10,"title":"Reduce the use of global state [Suggestion]","user":{"login":"katis","id":877226,"node_id":"MDQ6VXNlcjg3NzIyNg==","avatar_url":"https://avatars1.githubusercontent.com/u/877226?v=4","gravatar_id":"","url":"https://api.github.com/users/katis","html_url":"https://github.com/katis","followers_url":"https://api.github.com/users/katis/followers","following_url":"https://api.github.com/users/katis/following{/other_user}","gists_url":"https://api.github.com/users/katis/gists{/gist_id}","starred_url":"https://api.github.com/users/katis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katis/subscriptions","organizations_url":"https://api.github.com/users/katis/orgs","repos_url":"https://api.github.com/users/katis/repos","events_url":"https://api.github.com/users/katis/events{/privacy}","received_events_url":"https://api.github.com/users/katis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-05T09:44:38Z","updated_at":"2019-01-05T09:44:38Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Currently the `ctx` global variable is used all around the app, which follows the design of the JS version.\r\n\r\nTo make testing easier and to make the code more \"Darty\", maybe the ReactiveContext should be passed as a parameter to the classes that use it. Only builder functions/factories would access the global context.\r\n\r\nCould also look into using [Zone](https://www.dartlang.org/articles/libraries/zones) specific data for the context. Zone is kinda like ThreadLocal in Java. Might also help in making testing tools etc. in the future."}}
{"actor":{"display_login":"katis"}}