Function DataModel

  • Base abstract class for data models.

    Never override the constructor, use onLazyInit or onLazyAttachedToRootStore instead.

    Type Parameters

    Parameters

    • fnModelProps: (...args: A) => TProps

      Function that generates model properties.

    Returns _DataModel<unknown, TProps>

    TProps Model properties type.

  • Base abstract class for data models.

    Never override the constructor, use onLazyInit or onLazyAttachedToRootStore instead.

    Type Parameters

    Parameters

    • modelProps: TProps

      Model properties.

    Returns _DataModel<unknown, TProps>

    TProps Model properties type.