I have offline first mobile chat app where chat messages can be also images.
I.e if I have 20 images, I want to download them first from URL and then to display them from the local files. In the meantime, I want to display a loading placeholder until the image is downloaded. Is there some best practice for doing this? Thanks!
UPDATE: I don't know when the image is downloaded because it will be processed in a queue and file location will be updated in local DB, so I can't await on that download process.