[go: up one dir, main page]

Skip to content

Follow-up from "Resolve "Create, Build, and Style > Infinite Scroll""

The following discussion from gitlab-org/gitlab-services/design.gitlab.com!1627 (merged) should be addressed:

  • @tauriedavis started a discussion: (+1 comment)

    I noticed that the example demo below loads after 10 items. Should the docs be corrected or the demo?

the infinite scroll component should load the first 20 items in the list then show the next 20 every time the bottom of the list is reached.

today it is:

Vue.set(state.pageInfo, 'currentPage', parseInt(headers['X-Page'], 10));
Vue.set(state.pageInfo, 'nextPage', parseInt(headers['X-Next-Page'], 10));
Vue.set(state.pageInfo, 'totalPages', parseInt(headers['X-Total-Pages'], 10));
Vue.set(state.pageInfo, 'totalResults', parseInt(headers['X-Total'], 10));
Edited by Andy Volpe