Function runUnprotected

  • Runs a block in unprocted mode, as if it were run inside a model action. Consider using a proper model action instead since these kind of actions are not recorded.

    Type Parameters

    • T

    Parameters

    • name: string

      Mobx action name.

    • fn: (() => T)

      Action block.

        • (): T
        • Returns T

    Returns T

    T Return type.

  • Runs a block in unprocted mode, as if it were run inside a model action. Consider using a proper model action instead since these kind of actions are not recorded.

    Type Parameters

    • T

    Parameters

    • fn: (() => T)

      Action block.

        • (): T
        • Returns T

    Returns T

    T Return type.