Stone.js API
    Preparing search index...
    • Build a store from its registration, whichever form it was declared in.

      A class is constructed with the container, which is what auto-wires the services its actions use; a factory is called with it; a data definition needs nothing. The container is only required by the forms that use it, so building a plain store stays dependency-free.

      Type Parameters

      • State extends Record<string, any>

      Parameters

      • registration: StoreRegistration<State>

        The registration.

      • Optionalcontainer: any

        The container, for the class and factory forms.

      Returns IStore<State>

      A new store.