{"id":19260633,"url":"https://github.com/evant/paging-compose-refresh-issue","last_synced_at":"2026-05-16T04:51:10.761Z","repository":{"id":228462470,"uuid":"774066049","full_name":"evant/paging-compose-refresh-issue","owner":"evant","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-18T22:38:51.000Z","size":101,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T09:43:57.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-18T22:10:18.000Z","updated_at":"2024-06-27T09:35:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"69563ae9-664c-4d2b-adae-4319421fb890","html_url":"https://github.com/evant/paging-compose-refresh-issue","commit_stats":null,"previous_names":["evant/paging-compose-refresh-issue"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fpaging-compose-refresh-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fpaging-compose-refresh-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fpaging-compose-refresh-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fpaging-compose-refresh-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evant","download_url":"https://codeload.github.com/evant/paging-compose-refresh-issue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240357398,"owners_count":19788712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-09T19:22:11.994Z","updated_at":"2026-05-16T04:51:05.738Z","avatar_url":"https://github.com/evant.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Paging refresh issue\n\nA sample repo showing off paging `refresh()` calls being dropped.\n\nIf I call `refresh()` from a `LaunchedEffect` on the current page, the call is dropped instead of\nmaking it to the `RemoteMediator`.\n\n```\nval list = pagingFlow.collectAsLazyPagingItems()\nLaunchedEffect(Unit) {\n    // expected: this should trigger a refresh of the remote mediator every\n    // time you navigate back to this page\n    Log.d(\"TEST\", \"refresh called\")\n    list.refresh()\n}\n```\n\nLooking at the implementation, this appears to be because there's a tick after collection where\na `uiRecfeiver` is not set.\n\n```\npublic abstract class PagingDataDiffer...\n\n    public suspend fun collectFrom(pagingData: PagingData\u003cT\u003e) {\n        collectFromRunner.runInIsolation {\n            uiReceiver = pagingData.uiReceiver\n    ...\n\n\n    public fun refresh() {\n        log(DEBUG) { \"Refresh signal received\" }\n        uiReceiver?.refresh()\n    }\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevant%2Fpaging-compose-refresh-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevant%2Fpaging-compose-refresh-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevant%2Fpaging-compose-refresh-issue/lists"}