@tempots/ui
ResultView() function
Renders a view based on the result of a computation.
Signature:
ResultView: <T, E>(result: Value<Result<T, E>>, options: ResultViewOptions<T, E> | ((value: Signal<T>) => TNode)) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
result |
Value<Result<T, E>> |
The result of the computation. |
options |
ResultViewOptions<T, E> | ((value: Signal<T>) => TNode) |
The options for rendering the view. |
Returns: Renderable
The rendered view.