Skip to content

Commit 5ba9bf5

Browse files
committed
Implement ScopedLoopBox.lifetime
1 parent 2b8ca79 commit 5ba9bf5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Loop/LoopBox.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ internal class ScopedLoopBox<RootState, RootEvent, ScopedState, ScopedEvent>: Lo
55
root.producer.map(value)
66
}
77

8+
override var lifetime: Lifetime {
9+
root.lifetime
10+
}
11+
812
private let root: LoopBoxBase<RootState, RootEvent>
913
private let value: KeyPath<RootState, ScopedState>
1014
private let eventTransform: (ScopedEvent) -> RootEvent

0 commit comments

Comments
 (0)