{"action":"created","issue":{"url":"https://api.github.com/repos/hhff/ember-infinity/issues/90","labels_url":"https://api.github.com/repos/hhff/ember-infinity/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/hhff/ember-infinity/issues/90/comments","events_url":"https://api.github.com/repos/hhff/ember-infinity/issues/90/events","html_url":"https://github.com/hhff/ember-infinity/issues/90","id":106260162,"number":90,"title":"Cursor-based pagination loads duplicate results","user":{"login":"davidgoli","id":44666,"avatar_url":"https://avatars.githubusercontent.com/u/44666?v=3","gravatar_id":"","url":"https://api.github.com/users/davidgoli","html_url":"https://github.com/davidgoli","followers_url":"https://api.github.com/users/davidgoli/followers","following_url":"https://api.github.com/users/davidgoli/following{/other_user}","gists_url":"https://api.github.com/users/davidgoli/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgoli/subscriptions","organizations_url":"https://api.github.com/users/davidgoli/orgs","repos_url":"https://api.github.com/users/davidgoli/repos","events_url":"https://api.github.com/users/davidgoli/events{/privacy}","received_events_url":"https://api.github.com/users/davidgoli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-14T02:30:43Z","updated_at":"2015-11-17T19:30:16Z","closed_at":null,"body":"Repro:\r\n\r\n- Implement twitter-style min_id pagination, instead of page-number-based pagination, using boundParams to recalculate the query params for each page: http://www.sitepoint.com/paginating-real-time-data-cursor-based-pagination/\r\n- Create an infinite model on a route with a template on a long page, but a small per-page count, so that the loader component is still visible after the first page of results has loaded\r\n\r\nResult: The first page of results is rendered twice.\r\n\r\nAlthough the page number is incremented, the updateInfinityModel method is not called on the first page load, and the infinityModelUpdated hook is only called afterRender and thus after the second page load is already triggered. Therefore, any params necessary for the query besides the page number have not been updated since the first page was loaded."},"comment":{"url":"https://api.github.com/repos/hhff/ember-infinity/issues/comments/157479099","html_url":"https://github.com/hhff/ember-infinity/issues/90#issuecomment-157479099","issue_url":"https://api.github.com/repos/hhff/ember-infinity/issues/90","id":157479099,"user":{"login":"davidgoli","id":44666,"avatar_url":"https://avatars.githubusercontent.com/u/44666?v=3","gravatar_id":"","url":"https://api.github.com/users/davidgoli","html_url":"https://github.com/davidgoli","followers_url":"https://api.github.com/users/davidgoli/followers","following_url":"https://api.github.com/users/davidgoli/following{/other_user}","gists_url":"https://api.github.com/users/davidgoli/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgoli/subscriptions","organizations_url":"https://api.github.com/users/davidgoli/orgs","repos_url":"https://api.github.com/users/davidgoli/repos","events_url":"https://api.github.com/users/davidgoli/events{/privacy}","received_events_url":"https://api.github.com/users/davidgoli/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T19:30:16Z","updated_at":"2015-11-17T19:30:16Z","body":"@UnifiedInc This is still an open issue pending merge of #77 , at which time we'll add documentation illustrating its use. Fear not - the solution is very close at hand."}}