{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/9267","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/9267/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/9267/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/9267/events","html_url":"https://github.com/emberjs/ember.js/issues/9267","id":44769480,"number":9267,"title":"CreateRecord not updating list if queryParams present.","user":{"login":"mewben","id":2163157,"avatar_url":"https://avatars.githubusercontent.com/u/2163157?v=3","gravatar_id":"","url":"https://api.github.com/users/mewben","html_url":"https://github.com/mewben","followers_url":"https://api.github.com/users/mewben/followers","following_url":"https://api.github.com/users/mewben/following{/other_user}","gists_url":"https://api.github.com/users/mewben/gists{/gist_id}","starred_url":"https://api.github.com/users/mewben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mewben/subscriptions","organizations_url":"https://api.github.com/users/mewben/orgs","repos_url":"https://api.github.com/users/mewben/repos","events_url":"https://api.github.com/users/mewben/events{/privacy}","received_events_url":"https://api.github.com/users/mewben/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/emberjs/ember.js/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/emberjs/ember.js/labels/Old:%20unverified","name":"Old: unverified","color":"FFA500"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-10-03T05:35:03Z","updated_at":"2015-04-17T14:41:02Z","closed_at":"2014-11-01T19:09:36Z","body":"I have this list that shows the users in `index.hbs`:\r\n```\r\n<ul>\r\n{{#each}}\r\n\t<li>{{name}}</li>\r\n{{/each}}\r\n</ul>\r\n``` \r\n\r\nThis is taken from `routes/users/index.js`\r\n```\r\nexport default Ember.Route.extend({\r\n    queryParams: {\r\n\t\tq: {refreshModel: true}\r\n\t},\r\n\r\n\tmodel: function(params) {\r\n\t\treturn this.store.find('user', params);\r\n\t},\r\n\r\n\tactions: {\r\n\t\tquickAdd: function() {\r\n\t\t\tthis.store.push('user', {\r\n\t\t\t\tid: 888,\r\n\t\t\t\tname: 'Test Name'\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n});\r\n```\r\n\r\nI've setup `queryParams` in my `controllers/users/index.js` like this:\r\n```\r\nexport default Ember.ArrayController.extend({\r\n\tqueryParams: ['q'],\r\n\tq: null\r\n});\r\n```\r\n\r\nThe `quickAdd` action just quickly adds one record to the user store.\r\n\r\n## The Problem ##\r\nAfter executing the `quickAdd` action, the list doesn't update. However, when I changed the model hook to just\r\n```\r\nreturn this.store.find('user');\r\n```\r\n, this works perfectly.\r\n\r\nI don't know if this is a bug or I just done something wrong. "},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/93999219","html_url":"https://github.com/emberjs/ember.js/issues/9267#issuecomment-93999219","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/9267","id":93999219,"user":{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T14:41:02Z","updated_at":"2015-04-17T14:41:02Z","body":"But the data are on the server, so I had to do a `filter` with a query to call `findQuery` on my particular adapter. Thanks."}}