@tempots/ui

AsyncResultView() function

Renders the view based on the result of an asynchronous operation.

Signature:

AsyncResultView: (result: Value<AsyncResult>, options: AsyncResultViewOptions | ((value: Signal) => TNode)) => Renderable

Parameters

Parameter

Type

Description

result

Value>

The result of the asynchronous operation.

options

AsyncResultViewOptions | ((value: Signal) => TNode)

The options object or a function that returns a TNode.

Returns: Renderable

The rendered view.