File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ public struct Fetch<Value: Sendable>: Sendable {
3333 /// Useful if you want to access various property wrapper state, like ``loadError``,
3434 /// ``isLoading``, and ``publisher``.
3535 public var projectedValue : Self {
36- self
36+ get { self }
37+ nonmutating set { sharedReader. projectedValue = newValue. sharedReader. projectedValue }
3738 }
3839
3940 /// Returns a ``sharedReader`` for the given key path.
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ public struct FetchAll<Element: Sendable>: Sendable {
3333 /// Useful if you want to access various property wrapper state, like ``loadError``,
3434 /// ``isLoading``, and ``publisher``.
3535 public var projectedValue : Self {
36- self
36+ get { self }
37+ nonmutating set { sharedReader. projectedValue = newValue. sharedReader. projectedValue }
3738 }
3839
3940 /// Returns a ``sharedReader`` for the given key path.
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ public struct FetchOne<Value: Sendable>: Sendable {
3333 /// Useful if you want to access various property wrapper state, like ``loadError``,
3434 /// ``isLoading``, and ``publisher``.
3535 public var projectedValue : Self {
36- self
36+ get { self }
37+ nonmutating set { sharedReader. projectedValue = newValue. sharedReader. projectedValue }
3738 }
3839
3940 /// Returns a ``sharedReader`` for the given key path.
You can’t perform that action at this time.
0 commit comments