{"action":"opened","issue":{"url":"https://api.github.com/repos/mobxjs/mobx/issues/875","repository_url":"https://api.github.com/repos/mobxjs/mobx","labels_url":"https://api.github.com/repos/mobxjs/mobx/issues/875/labels{/name}","comments_url":"https://api.github.com/repos/mobxjs/mobx/issues/875/comments","events_url":"https://api.github.com/repos/mobxjs/mobx/issues/875/events","html_url":"https://github.com/mobxjs/mobx/issues/875","id":212270388,"number":875,"title":"Persisting unobserved computed values","user":{"login":"adufilie","id":676445,"avatar_url":"https://avatars0.githubusercontent.com/u/676445?v=3","gravatar_id":"","url":"https://api.github.com/users/adufilie","html_url":"https://github.com/adufilie","followers_url":"https://api.github.com/users/adufilie/followers","following_url":"https://api.github.com/users/adufilie/following{/other_user}","gists_url":"https://api.github.com/users/adufilie/gists{/gist_id}","starred_url":"https://api.github.com/users/adufilie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adufilie/subscriptions","organizations_url":"https://api.github.com/users/adufilie/orgs","repos_url":"https://api.github.com/users/adufilie/repos","events_url":"https://api.github.com/users/adufilie/events{/privacy}","received_events_url":"https://api.github.com/users/adufilie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-06T22:29:25Z","updated_at":"2017-03-06T22:29:25Z","closed_at":null,"body":"I have a use case (with mobx-react) where one render may use a particular computed value, the next may not, but a third render may use it again and we do not want it recomputed from scratch if no dependencies have changed.\r\n\r\nIf there is strong reason to keep the current behavior where it throws away the computed value as it becomes unobserved, can we please at least add an option for persisting computed values even when they are unobserved temporarily?\r\n\r\nThis is the same feature hinted at [in #706](https://github.com/mobxjs/mobx/issues/706#issuecomment-273191617) and my use case is related to #668 and #872 where I have a computed promise that I don't want to recompute.\r\n\r\nIn other words, I would like to eliminate the last part of the implementation behavior described in computedvalue.ts:  \r\n> * If at any point it's outside batch and it isn't observed: reset everything and go to 1.\r\n"}}
{"actor":{"display_login":"adufilie"}}