SwiftStore
Simplified Store API to provide better interop with Objective-C/Swift.
Constructors
Types
Functions
Link copied to clipboard
Calls Store.dispatchJob and returns a Disposable that cancels foreground coroutine on dispose call.
Link copied to clipboard
Invokes onStateChange on each change of currentState. Returns a Disposable that should be disposed when subscription is no longer needed. Initial value is delivered with onStateChange before this method returns.
open fun <Selected> subscribe(selector: <Error class: unknown class><State, Selected>, onStateChange: (Selected) -> Unit): Disposable
Invokes onStateChange on each change of selected state with selector. Returns a Disposable that should be disposed when subscription is no longer needed. Initial value is delivered with onStateChange before this method returns.