• Run a callback function that can access signal values without subscribing to the signal updates.

    Type Parameters

    • T

    Parameters

    • fn: (() => T)

      The callback function.

        • (): T
        • Returns T

    Returns T

    The value returned by the callback.