Skip to content

Commit 7117839

Browse files
committed
Fix GraphHost.continueTransaction
1 parent d36696a commit 7117839

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Sources/OpenSwiftUICore/Graph/GraphHost.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,19 +426,21 @@ extension GraphHost {
426426
package final func emptyTransaction(_ transaction: Transaction = .init()) {
427427
asyncTransaction(transaction, mutation: EmptyGraphMutation())
428428
}
429-
429+
430+
// Audited for 6.5.4
430431
package final func continueTransaction(_ body: @escaping () -> Void) {
431432
Update.assertIsLocked()
432433
var host = self
433434
while !host.inTransaction {
434435
guard let parent = host.parentHost else {
435-
Update.enqueueAction {
436-
self.asyncTransaction { body() }
436+
Update.enqueueAction(reason: nil) {
437+
host.asyncTransaction { body() }
437438
}
438439
return
439440
}
440441
host = parent
441442
}
443+
// TODO: CustomEventTrace
442444
host.continuations.append(body)
443445
}
444446

0 commit comments

Comments
 (0)