useOptimistic

external fun <T> useOptimistic(passthrough: T): StateInstance<T>(source)
external fun <T, A> useOptimistic(passthrough: T, reducer: (state: T, action: A) -> T): JsTuple2<T, (action: A) -> Unit>(source)