You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SDWebImageSwiftUI/Classes/WebImage.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -264,9 +264,9 @@ public struct WebImage : View {
264
264
}else{
265
265
result =AnyView(configure(image:.empty))
266
266
}
267
-
// UUID to avoid SwiftUI engine cache the status, and does not call `onAppear` when placeholder not changed (See `ContentView.swift/ContentView2` case)
268
-
// Because we load the image url in `onAppear`, it should be called to sync with state changes :)
269
-
return result.id(UUID())
267
+
// Custom ID to avoid SwiftUI engine cache the status, and does not call `onAppear` when placeholder not changed (See `ContentView.swift/ContentView2` case)
268
+
// Because we load the image url in placeholder's `onAppear`, it should be called to sync with state changes :)
0 commit comments