This repository has been archived by the owner on Dec 15, 2024. It is now read-only.
Caching images causes URLImage to reload images without view update in keyboard extension #161
Open
4 of 5 tasks
Labels
bug
Something isn't working
Summary and/or background
The app uses URLImage to load images into a keyboard extension based on user search queries. The images are cached. If the user types or taps on text fields the images loaded will reload and reanimate. Additionally, the images will still reload on a new search query even if their new search query does not result in updated images returned. Removing the caching removes the bug but there is no longer caching which is very desired.
OS and what device you are using
Version of URLImage library
Version 3.1.0
What you expected would happen
I expected for the images to not be reloaded when the search results are not updated and that tapping in text fields would not cause the images to reload.
What actually happens
The images reload even if the search results are not updated and tapping in text fields or typing in them causes the images to reload.
Sample code
I am adding the following URLImageService to the view environment for caching. If I remove this then the bug will disappear (but so will the caching).
Test data
The issue occurs with any image URLs.
Additional information
Misc
The text was updated successfully, but these errors were encountered: