Fix publishing changes from within view updates
This commit is contained in:
parent
82fb4982ec
commit
319797a68d
@ -102,8 +102,10 @@ extension SwiftUIWidget {
|
||||
type: Data.Type
|
||||
) where Data: ViewRenderData {
|
||||
if updateProperties, let id = storage.fields["updater-id"] as? String {
|
||||
Task { @MainActor in
|
||||
SwiftUIUpdater.updater.state[id] = self
|
||||
}
|
||||
}
|
||||
var children = storage.fields["child-storages"] as? [String: ViewStorage] ?? [:]
|
||||
for view in wrappedViews where !children.contains(where: { $0.key == view.key }) {
|
||||
children[view.key] = view.value.storage(data: data, type: type)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user