StorePublisher

@dynamicMemberLookup
public struct StorePublisher<State> : Publisher

A publisher of store state.

  • Declaration

    Swift

    public typealias Output = State
  • Declaration

    Swift

    public typealias Failure = Never
  • Undocumented

    Declaration

    Swift

    public let upstream: AnyPublisher<State, Never>
  • Declaration

    Swift

    public func receive<S>(subscriber: S)
    where S: Subscriber, Failure == S.Failure, Output == S.Input
  • Returns the resulting publisher of a given key path.

    Declaration

    Swift

    public subscript<LocalState>(
      dynamicMember keyPath: KeyPath<State, LocalState>
    ) -> StorePublisher<LocalState>
    where LocalState: Equatable