Fix update on LoadableImage (#973)

* Refactor LoadableImage

* Cleanup
This commit is contained in:
Alfonso Grillo
2023-05-29 12:53:23 +02:00
committed by GitHub
parent 909b8eed7e
commit 1c07f6f86c
2 changed files with 40 additions and 12 deletions
@@ -53,9 +53,6 @@ struct LoadableAvatarImage: View {
} placeholder: {
PlaceholderAvatarImage(name: name, contentID: contentID)
}
// Binds the lifecycle of the LoadableImage to the associated URL.
// This fixes the problem of the cache returning old values after a change in the URL.
.id(url)
} else {
PlaceholderAvatarImage(name: name, contentID: contentID)
}