{"id":26985646,"url":"https://github.com/viacheslav-chugunov/pagedeffect","last_synced_at":"2026-05-07T17:33:18.447Z","repository":{"id":228028577,"uuid":"772969314","full_name":"viacheslav-chugunov/PagedEffect","owner":"viacheslav-chugunov","description":"An android library that helps implement pagination in Compose for LazyList, LazyGrid and LazyStaggeredGrid.","archived":false,"fork":false,"pushed_at":"2024-03-16T13:34:04.000Z","size":11237,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-18T06:56:07.685Z","etag":null,"topics":["android","compose","library","paging","paging-library","ui"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viacheslav-chugunov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-16T11:33:37.000Z","updated_at":"2024-12-21T20:55:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f36333f7-92db-4ac9-b062-258fa3af32ba","html_url":"https://github.com/viacheslav-chugunov/PagedEffect","commit_stats":null,"previous_names":["viacheslav-chugunov/pagedeffect"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/viacheslav-chugunov/PagedEffect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viacheslav-chugunov%2FPagedEffect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viacheslav-chugunov%2FPagedEffect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viacheslav-chugunov%2FPagedEffect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viacheslav-chugunov%2FPagedEffect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viacheslav-chugunov","download_url":"https://codeload.github.com/viacheslav-chugunov/PagedEffect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viacheslav-chugunov%2FPagedEffect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32748613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","compose","library","paging","paging-library","ui"],"created_at":"2025-04-03T18:33:01.527Z","updated_at":"2026-05-07T17:33:18.431Z","avatar_url":"https://github.com/viacheslav-chugunov.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PagedEffect\n\n## Description\n\nAn android library that helps implement pagination in Compose for LazyList, LazyGrid and LazyStaggeredGrid.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/viacheslav-chugunov/PagedEffect/blob/main/assets/paging_example.gif\" height=500 /\u003e\n\u003c/p\u003e\n\n## Setup\n\nAdd it in your root build.gradle at the end of repositories:\n\n```gradle\nallprojects {\n    repositories {\n        maven { setUrl(\"https://jitpack.io\") }\n    }\n}\n```\n\nAdd the dependency:\n\n```gradle\ndependencies {\n    implementation(\"com.github.viacheslav-chugunov:PagedEffect:1.0\")\n}\n```\n\n## Usage\n\n|Argument|Description|\n| --- | --- |\n|`state`|State of LazyList, LazyGrid or LazyStaggeredGrid.|\n|`totalItems`|Maximum number of elements in LazyList, LazyGrid or LazyStaggeredGrid. The value must be 1 or greater.|\n|`requestOffset`|Offset of elements from the end after which the pagination request begins. The value must be 0 or greater|\n|`requestNewItems`|A function called when the list has been scrolled to the end and new list elements need to be requested in order to display them.|\n\n```kotlin\n@Composable\nfun PagedEffect(\n    state: LazyListState,\n    totalItems: Int,\n    requestOffset: Int,\n    requestNewItems: suspend () -\u003e Unit\n)\n\n@Composable\nfun PagedEffect(\n    state: LazyGridState,\n    totalItems: Int,\n    requestOffset: Int,\n    requestNewItems: suspend () -\u003e Unit\n)\n\n@Composable\nfun PagedEffect(\n    state: LazyStaggeredGridState,\n    totalItems: Int,\n    requestOffset: Int,\n    requestNewItems: suspend () -\u003e Unit\n)\n```\n\n|Argument|Description|\n| --- | --- |\n|`state`|State of LazyList, LazyGrid or LazyStaggeredGrid.|\n|`totalItems`|Maximum number of elements in LazyList, LazyGrid or LazyStaggeredGrid. The value must be 1 or greater.|\n|`visibleItems`|Number of items already displayed in LazyList. The value must be 1 or greater.|\n|`step`|Number of items to request after pagination.|\n|`requestOffset`|Offset of elements from the end after which the pagination request begins. The value must be 0 or greater.|\n|`onVisibleItemsChanged`|A function called when the number of visible elements in the list needs to be updated.|\n\n\n```kotlin\n@Composable\nfun PagedEffect(\n    state: LazyListState,\n    totalItems: Int,\n    visibleItems: Int,\n    step: Int,\n    requestOffset: Int,\n    onVisibleItemsChanged: suspend (Int) -\u003e Unit\n)\n\n@Composable\nfun PagedEffect(\n    state: LazyGridState,\n    totalItems: Int,\n    visibleItems: Int,\n    step: Int,\n    requestOffset: Int,\n    onVisibleItemsChanged: suspend (Int) -\u003e Unit\n)\n\n@Composable\nfun PagedEffect(\n    state: LazyStaggeredGridState,\n    totalItems: Int,\n    visibleItems: Int,\n    step: Int,\n    requestOffset: Int,\n    onVisibleItemsChanged: suspend (Int) -\u003e Unit\n)\n```\n\nYou can also check  [example of implementation](https://github.com/viacheslav-chugunov/PagedEffect/blob/main/app/src/main/java/viacheslav/chugunov/pagedeffect/ExampleComposable.kt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviacheslav-chugunov%2Fpagedeffect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviacheslav-chugunov%2Fpagedeffect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviacheslav-chugunov%2Fpagedeffect/lists"}