{"action":"created","issue":{"url":"https://api.github.com/repos/rstoenescu/quasar-framework/issues/54","repository_url":"https://api.github.com/repos/rstoenescu/quasar-framework","labels_url":"https://api.github.com/repos/rstoenescu/quasar-framework/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/rstoenescu/quasar-framework/issues/54/comments","events_url":"https://api.github.com/repos/rstoenescu/quasar-framework/issues/54/events","html_url":"https://github.com/rstoenescu/quasar-framework/issues/54","id":173472527,"number":54,"title":"quasar-infinite-scroll should allow to \"reset\" it","user":{"login":"mlenormand","id":2403897,"avatar_url":"https://avatars.githubusercontent.com/u/2403897?v=3","gravatar_id":"","url":"https://api.github.com/users/mlenormand","html_url":"https://github.com/mlenormand","followers_url":"https://api.github.com/users/mlenormand/followers","following_url":"https://api.github.com/users/mlenormand/following{/other_user}","gists_url":"https://api.github.com/users/mlenormand/gists{/gist_id}","starred_url":"https://api.github.com/users/mlenormand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlenormand/subscriptions","organizations_url":"https://api.github.com/users/mlenormand/orgs","repos_url":"https://api.github.com/users/mlenormand/repos","events_url":"https://api.github.com/users/mlenormand/events{/privacy}","received_events_url":"https://api.github.com/users/mlenormand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-26T14:54:31Z","updated_at":"2016-08-26T15:49:23Z","closed_at":null,"body":"I have a search result list wrapped by a quasar-infinite-scroll.\r\nWhen a new search is triggered, I empty the 'items' array to and reset the quasar-infinite-scroll 'index' value to 0. After that, I expect the infinite-scroll to call loadMore() function in order to load and show new items but it's not the case. Or perhaps I'm not doing it the right way ?\r\nMaybe it would be interesting to add a \"reset\" method to the component, or make it automatically handle this situation ?"},"comment":{"url":"https://api.github.com/repos/rstoenescu/quasar-framework/issues/comments/242773295","html_url":"https://github.com/rstoenescu/quasar-framework/issues/54#issuecomment-242773295","issue_url":"https://api.github.com/repos/rstoenescu/quasar-framework/issues/54","id":242773295,"user":{"login":"rstoenescu","id":4665641,"avatar_url":"https://avatars.githubusercontent.com/u/4665641?v=3","gravatar_id":"","url":"https://api.github.com/users/rstoenescu","html_url":"https://github.com/rstoenescu","followers_url":"https://api.github.com/users/rstoenescu/followers","following_url":"https://api.github.com/users/rstoenescu/following{/other_user}","gists_url":"https://api.github.com/users/rstoenescu/gists{/gist_id}","starred_url":"https://api.github.com/users/rstoenescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstoenescu/subscriptions","organizations_url":"https://api.github.com/users/rstoenescu/orgs","repos_url":"https://api.github.com/users/rstoenescu/repos","events_url":"https://api.github.com/users/rstoenescu/events{/privacy}","received_events_url":"https://api.github.com/users/rstoenescu/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T15:49:23Z","updated_at":"2016-08-26T15:49:23Z","body":"Basically you can set index to 0 and call the handler (`loadMore()` in your case) yourself. Will add a reset() method to do that for convenience. But the content must be reset by you since it's controlled by variables in your page's scope (`items` in your case).\r\n\r\nSo adding reset() which sets index to 0 and calls handler. Is this what you expect? Please confirm."}}
{"actor":{"display_login":"rstoenescu"}}