Skip to content

Commit 48541a0

Browse files
committed
deprecate state selector
1 parent 9e1c1a7 commit 48541a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/ImmutableData/Selector.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ extension Selector {
4545
/// A component graph that depends on the entire global state of our application could compute its `body` properties more often than necessary.
4646
///
4747
/// - Returns: The global state of our application.
48+
@available(*, deprecated)
4849
@MainActor public var state: State {
4950
self.select { state in state }
5051
}

0 commit comments

Comments
 (0)