Function asReduxStore

  • Generates a redux compatible store out of a mobx-keystone object.

    Type Parameters

    • T extends object

    Parameters

    • target: T

      Root object.

    • Rest...middlewares: ReduxMiddleware<T>[]

      Optional list of redux middlewares.

    Returns ReduxStore<T>

    A redux compatible store.

    T Object type.