Skip to content

CollectionView RemainingItemsThresholdReachedCommand fires on initial data load #28279

@DharunAR

Description

@DharunAR

Description

CollectionView RemainingItemsThresholdReachedCommand should only fire when the ItemsThreshold has reached when the user is scrolling, but RemainingItemsThresholdReachedCommand fires on the Contentpage initial data load.

Steps to Reproduce

  1. I am facing these issues after we upgraded our project to Net 8. I have created a simple sample to replicate the similar behavior
  2. Added repro project, please download.
  3. Run the Application.
  4. Keep the breakpoint on executeLoadMoreActions which is RemainingItemsThresholdReachedCommand method, on initial load notice the RemainingItemsThresholdReachedCommand is being fired without the scroll.

Link to public reproduction project repository

https://github.com/DharunAR/MAUICollectionView

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

7.0.81

Affected platforms

Android

Affected platform versions

Android 14

Did you find any workaround?

No.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewpotential-regressionThis issue described a possible regression on a currently supported version., verification pendings/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions