{"action":"created","issue":{"url":"https://api.github.com/repos/mobxjs/mobx-utils/issues/159","repository_url":"https://api.github.com/repos/mobxjs/mobx-utils","labels_url":"https://api.github.com/repos/mobxjs/mobx-utils/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/mobxjs/mobx-utils/issues/159/comments","events_url":"https://api.github.com/repos/mobxjs/mobx-utils/issues/159/events","html_url":"https://github.com/mobxjs/mobx-utils/pull/159","id":372732790,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0ODM5MjQ3","number":159,"title":"Allow memoization of function parameter","user":{"login":"hc-12","id":17104732,"node_id":"MDQ6VXNlcjE3MTA0NzMy","avatar_url":"https://avatars0.githubusercontent.com/u/17104732?v=4","gravatar_id":"","url":"https://api.github.com/users/hc-12","html_url":"https://github.com/hc-12","followers_url":"https://api.github.com/users/hc-12/followers","following_url":"https://api.github.com/users/hc-12/following{/other_user}","gists_url":"https://api.github.com/users/hc-12/gists{/gist_id}","starred_url":"https://api.github.com/users/hc-12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hc-12/subscriptions","organizations_url":"https://api.github.com/users/hc-12/orgs","repos_url":"https://api.github.com/users/hc-12/repos","events_url":"https://api.github.com/users/hc-12/events{/privacy}","received_events_url":"https://api.github.com/users/hc-12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-22T22:53:59Z","updated_at":"2018-10-23T11:20:25Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/mobxjs/mobx-utils/pulls/159","html_url":"https://github.com/mobxjs/mobx-utils/pull/159","diff_url":"https://github.com/mobxjs/mobx-utils/pull/159.diff","patch_url":"https://github.com/mobxjs/mobx-utils/pull/159.patch"},"body":"This would allow transformer to accept function as prop which may have custom properties."},"comment":{"url":"https://api.github.com/repos/mobxjs/mobx-utils/issues/comments/432206313","html_url":"https://github.com/mobxjs/mobx-utils/pull/159#issuecomment-432206313","issue_url":"https://api.github.com/repos/mobxjs/mobx-utils/issues/159","id":432206313,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjIwNjMxMw==","user":{"login":"hc-12","id":17104732,"node_id":"MDQ6VXNlcjE3MTA0NzMy","avatar_url":"https://avatars0.githubusercontent.com/u/17104732?v=4","gravatar_id":"","url":"https://api.github.com/users/hc-12","html_url":"https://github.com/hc-12","followers_url":"https://api.github.com/users/hc-12/followers","following_url":"https://api.github.com/users/hc-12/following{/other_user}","gists_url":"https://api.github.com/users/hc-12/gists{/gist_id}","starred_url":"https://api.github.com/users/hc-12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hc-12/subscriptions","organizations_url":"https://api.github.com/users/hc-12/orgs","repos_url":"https://api.github.com/users/hc-12/repos","events_url":"https://api.github.com/users/hc-12/events{/privacy}","received_events_url":"https://api.github.com/users/hc-12/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T11:20:25Z","updated_at":"2018-10-23T11:20:25Z","author_association":"NONE","body":"@mweststrate I needed to pass in function that has a prop that i need to check against the observable state.\r\n\r\n```javascript\r\nfilteredProp = createTransformer(fn => {\r\n   return this.state.filter(prop => prop === fn.propName);\r\n});\r\n```\r\n\r\nIs there any reason to limit other types besides from `null` & `undefined`?\r\n\r\nI've updated PR to include test cases. Let me know if any change is required."}}
{"actor":{"display_login":"hc-12"}}