{"action":"opened","issue":{"url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/2958","repository_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa","labels_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/2958/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/2958/comments","events_url":"https://api.github.com/repos/ReactiveCocoa/ReactiveCocoa/issues/2958/events","html_url":"https://github.com/ReactiveCocoa/ReactiveCocoa/issues/2958","id":158434199,"number":2958,"title":"Different Int values delivered for same Signal","user":{"login":"nickvelloff","id":885369,"avatar_url":"https://avatars.githubusercontent.com/u/885369?v=3","gravatar_id":"","url":"https://api.github.com/users/nickvelloff","html_url":"https://github.com/nickvelloff","followers_url":"https://api.github.com/users/nickvelloff/followers","following_url":"https://api.github.com/users/nickvelloff/following{/other_user}","gists_url":"https://api.github.com/users/nickvelloff/gists{/gist_id}","starred_url":"https://api.github.com/users/nickvelloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickvelloff/subscriptions","organizations_url":"https://api.github.com/users/nickvelloff/orgs","repos_url":"https://api.github.com/users/nickvelloff/repos","events_url":"https://api.github.com/users/nickvelloff/events{/privacy}","received_events_url":"https://api.github.com/users/nickvelloff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-03T19:09:05Z","updated_at":"2016-06-03T19:09:05Z","closed_at":null,"body":"I'm new to this, so I know this is something dumb I'm doing...\r\n\r\nIn my view model I have \r\n```\r\nprivate let _currentSiteHash: MutableProperty<Int>\r\nlet currentSiteHash: AnyProperty<Int>\r\n\r\ninit() {\r\n        _currentSiteHash = MutableProperty<Int>(0)\r\n        currentSiteHash = AnyProperty(_currentSiteHash)\r\n        super.init()\r\n        currentSiteHash.signal\r\n            .observeNext { anInt in\r\n                print(\"TheViewModel currentSiteHash.signal.observeNext \\(anInt)\") // WORKS PERFECTLY\r\n            }\r\n}\r\n\r\n// then later after some data loads I set the value once\r\nself._currentSiteHash.value = 123\r\n```\r\nBut in my view controller I observe the signal\r\n```\r\ninit() {\r\n     super.init(node: _cvView)\r\n     _viewModel.currentSiteStateHash.signal\r\n            .observeNext { anInt in\r\n                print(\"TheViewController currentSiteHash.signal.observeNext \\(anInt)\")\r\n            }\r\n}\r\nThe output is:\r\nTheViewController currentSiteHash.signal.observeNext `-4799450060423276786`\r\nTheViewModel currentSiteHash.signal.observeNext `123`\r\n\r\nNo idea what I'm doing wrong here. Any suggestions? This value does need to be retained (not a \"hot\" signal) which I think means ephemeral in nature if I understand correctly ... this is a \"cold\" signal. \r\n\r\n"}}
{"actor":{"display_login":"nickvelloff"}}