AnyStateProvider
public struct AnyStateProvider<StateType> : StateProviderAnyStateProvider erases the protocol StateProvider, which defines a entities able to offer state publishers (Combine Publisher, RxSwift
Observable, ReactiveSwift SignalProducer) of certain StateType, so everybody can observe the global state changes through this container. Usually
a Store will implement that, but it can also be a StoreProjection with a state that is derived from the global source-of-truth.
The only protocol requirement is to offer a property statePublisher that will allow other entities to subscribe to state changes and react to
those.
- 
                  
                  Undocumented DeclarationSwift public init<S>(_ realProvider: S) where StateType == S.StateType, S : StateProvider
- 
                  
                  Undocumented DeclarationSwift public init(_ publisher: UnfailablePublisherType<StateType>)
- 
                  
                  DeclarationSwift public var statePublisher: UnfailablePublisherType<StateType> { get }
 View on GitHub
View on GitHub AnyStateProvider Structure Reference
        AnyStateProvider Structure Reference