Skip to content

Module

What Is Module?

Module is simply a ready-to-use makeModule instance with default options:

export const Module = makeModule({});

By default, Module has the following parameters:

  1. cache = 'run' The results are cached only for the duration of a single call (see Caching).
  2. lazy = true Modules are computed only when first accessed (see Lazy Initialization).
  3. transformInput = withModuleName Automatically adds a property to the dependencies object:

which lets any module function retrieve its own name (see Transform Input/Output).