Skip to content

LoadStateListeners on Paging version 3.0.0-alpha02 #92

@doilio

Description

@doilio

When I run my App with Paging Library version "3.0.0-alpha02" the LoadState Listeners stop working.

    binding.list.adapter = adapter.withLoadStateHeaderAndFooter(
            header = ReposLoadStateAdapter { adapter.retry() },
            footer = ReposLoadStateAdapter { adapter.retry() }
    )

You can replicate this issue by:

  1. Setting the paging library version to "3.0.0-alpha02"
    implementation "androidx.paging:paging-runtime:3.0.0-alpha02"

  2. Running the app, loading the list, then disabling the network.
    Once that is done you should see an error message and a button on the footer, just like on the image below,
    Enable your network and click the retry button. It will not work.

fix

Expected behavior:
I expect to click on the retry button and load the current list just like it happened on version "3.0.0-alpha01" of the Paging library
implementation "androidx.paging:paging-runtime:3.0.0-alpha01"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions