{"action":"created","issue":{"url":"https://api.github.com/repos/hhff/ember-infinity/issues/107","labels_url":"https://api.github.com/repos/hhff/ember-infinity/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/hhff/ember-infinity/issues/107/comments","events_url":"https://api.github.com/repos/hhff/ember-infinity/issues/107/events","html_url":"https://github.com/hhff/ember-infinity/pull/107","id":119092637,"number":107,"title":"Update README, push new record to infinityModel","user":{"login":"anilmaurya","id":1912864,"avatar_url":"https://avatars.githubusercontent.com/u/1912864?v=3","gravatar_id":"","url":"https://api.github.com/users/anilmaurya","html_url":"https://github.com/anilmaurya","followers_url":"https://api.github.com/users/anilmaurya/followers","following_url":"https://api.github.com/users/anilmaurya/following{/other_user}","gists_url":"https://api.github.com/users/anilmaurya/gists{/gist_id}","starred_url":"https://api.github.com/users/anilmaurya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anilmaurya/subscriptions","organizations_url":"https://api.github.com/users/anilmaurya/orgs","repos_url":"https://api.github.com/users/anilmaurya/repos","events_url":"https://api.github.com/users/anilmaurya/events{/privacy}","received_events_url":"https://api.github.com/users/anilmaurya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-11-26T19:04:11Z","updated_at":"2015-12-24T19:55:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hhff/ember-infinity/pulls/107","html_url":"https://github.com/hhff/ember-infinity/pull/107","diff_url":"https://github.com/hhff/ember-infinity/pull/107.diff","patch_url":"https://github.com/hhff/ember-infinity/pull/107.patch"},"body":" Use case:\r\n\r\n- List of posts to be displayed below text area. User can add new post in the list.\r\n\r\nNew post is created using `createRecord` api, post get created but posts \r\nlist does not get updated because `ember-infinity` uses `query` method to load data.\r\n\r\nData loaded using `query` is static and it does not update if new record is added in `store`. \r\n\r\nI spent whole day to figure this out, may be it will save other developers time.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hhff/ember-infinity/issues/comments/167154556","html_url":"https://github.com/hhff/ember-infinity/pull/107#issuecomment-167154556","issue_url":"https://api.github.com/repos/hhff/ember-infinity/issues/107","id":167154556,"user":{"login":"hhff","id":2865404,"avatar_url":"https://avatars.githubusercontent.com/u/2865404?v=3","gravatar_id":"","url":"https://api.github.com/users/hhff","html_url":"https://github.com/hhff","followers_url":"https://api.github.com/users/hhff/followers","following_url":"https://api.github.com/users/hhff/following{/other_user}","gists_url":"https://api.github.com/users/hhff/gists{/gist_id}","starred_url":"https://api.github.com/users/hhff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhff/subscriptions","organizations_url":"https://api.github.com/users/hhff/orgs","repos_url":"https://api.github.com/users/hhff/repos","events_url":"https://api.github.com/users/hhff/events{/privacy}","received_events_url":"https://api.github.com/users/hhff/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T19:55:03Z","updated_at":"2015-12-24T19:55:03Z","body":"Yeah - this is tricky because your model array (the `infinityModel` is a model array) is immutable - meaning that \"mutating it\" without using the store is not a good idea.\r\n\r\nI'm starting to think that we should be using an Ember.Array for infinityModel, and mapping the Model Array onto it, for the sake of immutability best practices."}}