class SynchronousMavericksStateStore<S : Any> : MavericksStateStore<S>
This acts as a functional state store, but all updates happen synchronously. The intention of this is to allow state changes in tests to be tracked synchronously.
SynchronousMavericksStateStore(initialState: S)
This acts as a functional state store, but all updates happen synchronously. The intention of this is to allow state changes in tests to be tracked synchronously. |
val flow: Flow<S> |
|
var state: S |
fun get(block: (S) -> Unit): Unit |
|
fun set(stateReducer: S.() -> S): Unit |