{"action":"opened","issue":{"url":"https://api.github.com/repos/rawrmaan/restyped-axios/issues/7","repository_url":"https://api.github.com/repos/rawrmaan/restyped-axios","labels_url":"https://api.github.com/repos/rawrmaan/restyped-axios/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/rawrmaan/restyped-axios/issues/7/comments","events_url":"https://api.github.com/repos/rawrmaan/restyped-axios/issues/7/events","html_url":"https://github.com/rawrmaan/restyped-axios/issues/7","id":326904231,"number":7,"title":"Mobx action to modify observable","user":{"login":"abelkbil","id":1478274,"avatar_url":"https://avatars0.githubusercontent.com/u/1478274?v=4","gravatar_id":"","url":"https://api.github.com/users/abelkbil","html_url":"https://github.com/abelkbil","followers_url":"https://api.github.com/users/abelkbil/followers","following_url":"https://api.github.com/users/abelkbil/following{/other_user}","gists_url":"https://api.github.com/users/abelkbil/gists{/gist_id}","starred_url":"https://api.github.com/users/abelkbil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abelkbil/subscriptions","organizations_url":"https://api.github.com/users/abelkbil/orgs","repos_url":"https://api.github.com/users/abelkbil/repos","events_url":"https://api.github.com/users/abelkbil/events{/privacy}","received_events_url":"https://api.github.com/users/abelkbil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-28T05:50:29Z","updated_at":"2018-05-28T05:50:29Z","closed_at":null,"author_association":"NONE","body":"Earlier I used to do with \r\n\r\n```\r\n@action serchSignalTags() {\r\n    this.Loader.TagsLoading = true;\r\n    this.$req('SEARCH_SIGNAL_TAG')\r\n      .then(\r\n        action(({ result }) => {\r\n          this.searchBox.tags = result.tags;\r\n          this.searchBox.items = result.items;\r\n          this.searchBox.resultCount = result._count;\r\n        })\r\n      )\r\n      .finally(\r\n        action(() => {\r\n          this.Loader.TagsLoading = false;\r\n        })\r\n      )\r\n      .catch(error => {\r\n        // tslint:disable-next-line:no-console\r\n        console.log(error.response);\r\n      });\r\n  }\r\n```\r\nI use mobx store, to modify any observable, need to be inside action\r\nNow i updated with \r\n\r\n```\r\nclient.get('dashboard').then(\r\n            action(({result}) => {\r\n                this.dashboardsList = this.transformListToGroup(result);\r\n            })\r\n        );\r\n```\r\n\r\nI get below error\r\n\r\n```\r\nArgument of type '(({ response: any }: { response: any; }) => void) & IAction' is not assignable to parameter of type '((value: TypedAxiosResponse<IDashboardAPI, \"dashboard\", \"GET\", { query: {}; response: { result: I...'.\r\n  Type '(({ response: any }: { response: any; }) => void) & IAction' is not assignable to type '(value: TypedAxiosResponse<IDashboardAPI, \"dashboard\", \"GET\", { query: {}; response: { result: ID...'.\r\n    Types of parameters '__0' and 'value' are incompatible.\r\n```\r\n\r\nthank you for your contribution and support.\r\n"}}
{"actor":{"display_login":"abelkbil"}}