We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84b854e commit 2cc1649Copy full SHA for 2cc1649
Sources/LiveViewNative/Coordinators/LiveViewCoordinator.swift
@@ -315,12 +315,17 @@ public class LiveViewCoordinator<R: RootRegistry>: ObservableObject {
315
case let .nodeElement(element):
316
// when a single element changes, send an update only to that element.
317
switch patch.changeType {
318
- case .add, .remove, .replace:
+ case .add, .remove:
319
if let parent = patch.parent {
320
self?.elementChanged(parent).send()
321
} else {
322
self?.elementChanged(patch.node).send()
323
}
324
+ case .replace:
325
+ if let parent = patch.parent {
326
+ self?.elementChanged(parent).send()
327
+ }
328
+ self?.elementChanged(patch.node).send()
329
case .change:
330
331
0 commit comments