@logixjs/react
    Preparing search index...

    Function useLocalModule

    • Type Parameters

      • S
      • A

      Parameters

      • factory: LocalModuleFactory<S, A>
      • Optionaldeps: DependencyList

      Returns ModuleRef<S, A>

    • Type Parameters

      • Id extends string
      • Sh extends AnyModuleShape
      • Ext extends object = {}

      Parameters

      • module: ModuleDef<Id, Sh, Ext>
      • options: ModuleTagOptions<Sh>

      Returns ModuleRef<
          StateOf<Sh>,
          ActionOf<Sh>,
          keyof Sh["actionMap"] & string,
          ModuleDef<Id, Sh, Ext>,
          ModuleDispatchers<
              ActionOf<Sh>,
              keyof Sh["actionMap"] & string,
              ModuleDef<Id, Sh, Ext>,
          >,
      > & Ext

    • Type Parameters

      • Sh extends AnyModuleShape

      Parameters

      • module: ModuleTag<string, Sh>
      • options: ModuleTagOptions<Sh>

      Returns ModuleRef<
          StateOf<Sh>,
          ActionOf<Sh>,
          keyof Sh["actionMap"] & string,
          ModuleTag<string, Sh>,
      >