Fix imageLoading bug when scrolling back to design
imageLoading was being set incorrectly (every time the item appeared). This meant that even if the image was not loading, the loading spinner would appear if the image appeared in view again. This commit changes the logic so that we only set imageLoading if the image has never appeared in view. This commit also adds and reorganises some tests to ensure this path is covered.
Showing
Please register or sign in to comment