Store

  • Stores and mutates the state of an application.

    See more

    Declaration

    Swift

    public final class Store<State> : StateStorable
    extension Store: ActionDispatcher
  • Creates a proxy of the store object for use by middleware.

    Middleware may use the store proxy to retreive the current state, send actions, continue to the next middleware, or subscribe to store changes. With the proxy, middleware don’t have to worry about retaining the store. Instead, the proxy provides a safe API to access a weak reference to it.

    See more

    Declaration

    Swift

    public struct StoreProxy<State> : StateStorable, ActionDispatcher
  • Actions performed by the store itself.

    See more

    Declaration

    Swift

    public enum StoreAction<State> : Action