You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great, looks good. I wonder if - (void) scrollViewWillBeginDecelerating:(UIScrollView *)scrollView is contributing to the slowness. You're calling [self fetchData] twice for some reason, and triggering a network request every time the scroll view decelerates might be too aggressive.
To make it more conservative, keep the code in the same method, but check against contentOffset and only trigger a load if you're near the bottom of the feed. You can also maintain a loading state, and have fetchData do nothing if there's already a load in progress.
Thanks for your feedback. I was experimenting with prefetching two pages of data and checked in the code to call fetchdata twice. My initial stab at implementing conservative fetch is tracked by Issue #3 .
/cc @nesquena @timothy1ee
The scrolling is not smooth yet but early feedback is appreciated. Thanks!
The text was updated successfully, but these errors were encountered: