• During a transaction no views are updated until the end of the transaction. The transaction will be run synchronously nonetheless.

    Type Parameters

    • T

    Parameters

    • action: (() => T)

      a function that updates some reactive state

        • (): T
        • Returns T

    • OptionalthisArg: undefined

    Returns T

    any value that was returned by the 'action' parameter.