xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] Listview on tab page with IsRefreshing keeps spinning #9338

Open schreys opened 4 years ago

schreys commented 4 years ago

Description

Listview on tab page with IsRefreshing keeps spinning

Steps to Reproduce

  1. Create a TabbedPage
  2. Call a Page with a ListView in the TabbedPage
  3. Load the data using a command on the OnAppearing event
  4. Set the IsRefreshing on true with a property changed event
  5. Load some async data
  6. Set the IsRefreshing on false with a property changed event

Expected Behavior

The spinner stops spinng

Actual Behavior

The spinner keeps on spinning

Basic Information

Screenshots

Reproduction Link

https://github.com/schreys/Xamarin-IsRefreshingBug

Workaround

Use a longer delay or use the device.BeginInvokeOnMainThread could fix this

samhouts commented 4 years ago

Looks like something changed between 4.1.0.778454 and 4.2.0 stable.

schreys commented 4 years ago

I think so too, because before I was on 4.1 and I did not have that problem.

mr5z commented 4 years ago

Also experiencing this in NavigationPage > ContentPage