Open ravirupareliya opened 5 years ago
@ravirupareliya did you figure out how to solve this?
@ravirupareliya I think I've figured it out. I had the exact same situation, I would use the same url after updating profile picture. The issue with that is if user A updates his profile picture, how would user B know that? User B would still view user A by the old profile picture saved is user B's device. I am appending an index to the filename from 1-99, and every time a user updates his profile picture, I increment that index.
I am getting same url after updating profile picture. So i tried to use
deleteUrl()
and then again i am loading image intoCachedImage
.Problem here is, it seems deleting url but it is not reflecting at a time. When i restart the application, it is showing new image. But when i am on the screen, it is still showing old image, i have used
deleteUrl()
and on success i am again doingsetState
but it is not working.