{"action":"created","issue":{"url":"https://api.github.com/repos/Catbag/redux-android-sample/issues/73","repository_url":"https://api.github.com/repos/Catbag/redux-android-sample","labels_url":"https://api.github.com/repos/Catbag/redux-android-sample/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/Catbag/redux-android-sample/issues/73/comments","events_url":"https://api.github.com/repos/Catbag/redux-android-sample/issues/73/events","html_url":"https://github.com/Catbag/redux-android-sample/issues/73","id":190341552,"number":73,"title":"When AppStateReducer.listUpdated receive a empty gifs the state is changed","user":{"login":"raulccabreu","id":429922,"avatar_url":"https://avatars.githubusercontent.com/u/429922?v=3","gravatar_id":"","url":"https://api.github.com/users/raulccabreu","html_url":"https://github.com/raulccabreu","followers_url":"https://api.github.com/users/raulccabreu/followers","following_url":"https://api.github.com/users/raulccabreu/following{/other_user}","gists_url":"https://api.github.com/users/raulccabreu/gists{/gist_id}","starred_url":"https://api.github.com/users/raulccabreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulccabreu/subscriptions","organizations_url":"https://api.github.com/users/raulccabreu/orgs","repos_url":"https://api.github.com/users/raulccabreu/repos","events_url":"https://api.github.com/users/raulccabreu/events{/privacy}","received_events_url":"https://api.github.com/users/raulccabreu/received_events","type":"User","site_admin":false},"labels":[{"id":460159512,"url":"https://api.github.com/repos/Catbag/redux-android-sample/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-18T15:09:15Z","updated_at":"2016-11-18T18:30:23Z","closed_at":null,"body":"change to desirable behavior: if the list is empty return the actual state."},"comment":{"url":"https://api.github.com/repos/Catbag/redux-android-sample/issues/comments/261605374","html_url":"https://github.com/Catbag/redux-android-sample/issues/73#issuecomment-261605374","issue_url":"https://api.github.com/repos/Catbag/redux-android-sample/issues/73","id":261605374,"user":{"login":"niltonvasques","id":2291529,"avatar_url":"https://avatars.githubusercontent.com/u/2291529?v=3","gravatar_id":"","url":"https://api.github.com/users/niltonvasques","html_url":"https://github.com/niltonvasques","followers_url":"https://api.github.com/users/niltonvasques/followers","following_url":"https://api.github.com/users/niltonvasques/following{/other_user}","gists_url":"https://api.github.com/users/niltonvasques/gists{/gist_id}","starred_url":"https://api.github.com/users/niltonvasques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niltonvasques/subscriptions","organizations_url":"https://api.github.com/users/niltonvasques/orgs","repos_url":"https://api.github.com/users/niltonvasques/repos","events_url":"https://api.github.com/users/niltonvasques/events{/privacy}","received_events_url":"https://api.github.com/users/niltonvasques/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T18:30:23Z","updated_at":"2016-11-18T18:30:23Z","body":"No! The immutables only create another when changes happens.\r\n\r\nI written the test bellow to validate my hypotheses:\r\n\r\n```java\r\n    @Test\r\n    public void testBuild() {\r\n        AppState state = buildAppState(buildFiveGifs());\r\n\r\n        AppState anotherState = ImmutableAppState.builder()\r\n                .from(state)\r\n                .putAllGifs(new HashMap<>())\r\n                .build();\r\n\r\n        assertEquals(state.hashCode(), anotherState.hashCode());\r\n        assertTrue(state.equals(anotherState));\r\n        assertEquals(state, anotherState);\r\n\r\n        Gif gif = buildGif();\r\n        Map gifs = new HashMap();\r\n        gifs.put(gif.getUuid(), gif);\r\n        anotherState = ImmutableAppState.builder()\r\n                .from(state)\r\n                .putAllGifs(gifs)\r\n                .build();\r\n        assertNotEquals(state.hashCode(), anotherState.hashCode());\r\n        assertFalse(state.equals(anotherState));\r\n        assertNotEquals(state, anotherState);\r\n    }\r\n\r\n```"}}
{"actor":{"display_login":"niltonvasques"}}