kvision / pl.treksoft.kvision.state / ObservableState

ObservableState

interface ObservableState<S>

An interface of observable state.

Functions

subscribe

abstract fun subscribe(observer: (S) -> Unit): () -> Unit

Subscribe for the state change notifications.

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.

Inheritors

ObservableList

interface ObservableList<T> : MutableList<T>, ObservableState<List<T>>

Observable list interface.

ObservableListWrapper

class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>, ObservableState<List<T>>

Simple observable list implementation.

ReduxStore

class ReduxStore<S : Any, A : RAction> : ObservableState<S>

A class implementing redux pattern backed by the Redux Kotlin library.