mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-24 12:14:25 +01:00
Fix Shared publisher docs (#3201)
This commit is contained in:
@@ -138,7 +138,7 @@ public struct Shared<Value> {
|
||||
/// ```swift
|
||||
/// case .onAppear:
|
||||
/// return .run { [currentUser = state.$currentUser] send in
|
||||
/// for await _ in currentUser {
|
||||
/// for await _ in currentUser.publisher.values {
|
||||
/// await send(.currentUserUpdated)
|
||||
/// }
|
||||
/// }
|
||||
|
||||
Reference in New Issue
Block a user