Package-level declarations
Types
Properties
Functions
Link copied to clipboard
Link copied to clipboard
fun createStore(middlewares: Array<Middleware<Any, Any>> = emptyArray(), fn: StoreScope.() -> Unit): Store
Create store
Link copied to clipboard
Redux provider, you should provide a state store to this Provider by use createStore
Link copied to clipboard
Link copied to clipboard
Use dispatch, Through this hook, you can easily obtain the global dispatch function
Link copied to clipboard
inline fun <A> useDispatchAsync(alias: String? = null, noinline onBefore: DispatchCallback<A>? = null, noinline onFinally: DispatchCallback<A>? = null): DispatchAsync<A>
Get a dispatch function that supports asynchronous execution. This function receives a suspend function whose return value is Action as a parameter.
Link copied to clipboard
Use selector
Use selector, by pass block, you can also select part of state class,to use in your component