{"action":"opened","issue":{"url":"https://api.github.com/repos/Yomguithereal/baobab/issues/429","labels_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/429/labels{/name}","comments_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/429/comments","events_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/429/events","html_url":"https://github.com/Yomguithereal/baobab/issues/429","id":127876799,"number":429,"title":"Question on Baobab's immutability ","user":{"login":"dumconstantin","id":672153,"avatar_url":"https://avatars.githubusercontent.com/u/672153?v=3","gravatar_id":"","url":"https://api.github.com/users/dumconstantin","html_url":"https://github.com/dumconstantin","followers_url":"https://api.github.com/users/dumconstantin/followers","following_url":"https://api.github.com/users/dumconstantin/following{/other_user}","gists_url":"https://api.github.com/users/dumconstantin/gists{/gist_id}","starred_url":"https://api.github.com/users/dumconstantin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumconstantin/subscriptions","organizations_url":"https://api.github.com/users/dumconstantin/orgs","repos_url":"https://api.github.com/users/dumconstantin/repos","events_url":"https://api.github.com/users/dumconstantin/events{/privacy}","received_events_url":"https://api.github.com/users/dumconstantin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-21T09:07:28Z","updated_at":"2016-01-21T09:07:28Z","closed_at":null,"body":"I really must be missing something, maybe someone can clue me in.\r\n\r\nHere is what I mean:\r\n```javascript\r\nvar a = new Baobab({ b: 1 })\r\nvar c = a.set('b', 2)\r\na.get('b') // I expected 1 but got 2!\r\nc // I expected a reference to the new tree but was surprised to see 2\r\n```\r\n\r\nAm I wrong to think that Baobab should work like ImmutableJS in terms of preserving the tree on mutations on just returning an updated version?\r\n\r\nImmutableJS doesn't have by default the excellent cursors and event system on data change like Baobab does and that's why I turned to using Baobab - but was a bit surprised that data mutated on every update.\r\n\r\n\r\n\r\n\r\n"}}