Skip to content

Commit 672654d

Browse files
committed
Fixes for Perception 2
1 parent af0a2c7 commit 672654d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/ComposableArchitecture/Observation/ObservationStateRegistrar.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ extension ObservationStateRegistrar: Equatable, Hashable, Codable {
3030
@inlinable
3131
public func access<Subject: Observable, Member>(
3232
_ subject: Subject,
33-
keyPath: KeyPath<Subject, Member>
33+
keyPath: KeyPath<Subject, Member>,
34+
filePath: StaticString = #filePath,
35+
line: UInt = #line
3436
) {
35-
self.registrar.access(subject, keyPath: keyPath)
37+
self.registrar.access(subject, keyPath: keyPath, filePath: filePath, line: line)
3638
}
3739

3840
/// Mutates a value to a new value, and decided to notify observers based on the identity of

0 commit comments

Comments
 (0)