mobx-keystone
    Preparing search index...

    Function runUnprotected

    • Runs a block in unprotected mode, as if it were run inside a model action. Structural mutations share one synchronous mutation batch, but the block is not recorded as an action. Consider using a proper model action when action recording is needed.

      Type Parameters

      • T

        Return type.

      Parameters

      • name: string

        Mobx action name.

      • fn: () => T

        Action block.

      Returns T

    • Runs a block in unprotected mode, as if it were run inside a model action. Structural mutations share one synchronous mutation batch, but the block is not recorded as an action. Consider using a proper model action when action recording is needed.

      Type Parameters

      • T

        Return type.

      Parameters

      • fn: () => T

        Action block.

      Returns T