NWACus / avy

Mobile-Native Viewing of NAC Avalanche Forecasts
MIT License
11 stars 6 forks source link

Infinite Scroll Broken When First Data Doesn't Match Filters #777

Open stevekuznetsov opened 3 weeks ago

stevekuznetsov commented 3 weeks ago

Right now, fetchMoreData() in the ObservationsListView keeps fetching more pages until some data is returned. However, when a filter or filters are enabled, if we're able to get some data but none of it matches the filter, a user will see an infinite loading bug. We would be better off checking to see if there's any data being displayed, but need to track "more" data being displayed for when we trigger the fetching due to user scroll behavior.