[][src]Crate reactive_state

Modules

middleware

Middleware used to modify the behaviour of a Store during a Store::dispatch(). This module also contains some simple middleware implementations which can be used as utilities in an application.

providerfeature="yew"

Structs

Callback

A wrapper for a callback which is notified of changes to Store State, and Events produced by the store.

CompositeReducer

A Reducer composed of multiple reducers.

Listener

A weak reference to a callback function (usually Callback) which is notified of changes to Store State, and Events produced by the store.

ReducerResult

The result of a Reducer::reduce() function.

Store

This struct is designed to operate as a central source of truth and global "immutable" state within your application.

StoreRef

A wrapper for an Rc reference to a Store.

Traits

AsListener

A trait to take a Callback or other custom callback type and produce a Listener, a weak reference to that callback.

Reducer

Using the reduce() method, implementors of this trait take an Action submitted to a store via Store::dispatch() and modifies the State in the store, producing a new State, and also producing events and effects associated with the Action and state modifications that occurred.

StoreEvent

An Event to be produced by a Store.