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
Happens on iOS, reproduceable only on a device, not simulator.
On app open, the images all load correctly in a FlatList. However, after backgrounding the app for ~2 minutes and re-opening, many of the images that had previously loaded will gone and will not return without force quitting.
The text was updated successfully, but these errors were encountered:
If the cache limit is hit and images are pruned while in a Flatlist, there is nothing that will trigger re-fetching the images until the flatlist items are recycled, which doesn't seem to happen very often.
we used a separate smaller image to cache in flat lists
increased cache limit
since then we haven't had any issues. we started with a pretty aggressive cache limit. bc flatlist doesn't immediately recycle views as you scroll, you want to make sure your cache limit is substantially larger than a few scrolled screens of a flatlist
My config:
Using Expo to install.
Happens on iOS, reproduceable only on a device, not simulator.
On app open, the images all load correctly in a FlatList. However, after backgrounding the app for ~2 minutes and re-opening, many of the images that had previously loaded will gone and will not return without force quitting.
The text was updated successfully, but these errors were encountered: