blocks/async-state
@fungi.computer/caps / blocks/async-state
blocks/async-state
Section titled “blocks/async-state”Type Aliases
Section titled “Type Aliases”AsyncStateValue
Section titled “AsyncStateValue”AsyncStateValue =
"loading"|"empty"|"error"|"content"
Supported AsyncStateValue values.
AsyncStateProps
Section titled “AsyncStateProps”AsyncStateProps =
Omit<HTMLAttributes<HTMLDivElement>>,"content"> > &object
Props accepted by AsyncState.
Type Declaration
Section titled “Type Declaration”state:
AsyncStateValue
The host’s explicit state; this block does not infer it from its slots.
loading
Section titled “loading”loading:
ReactNode
empty:
ReactNode
error:
ReactNode
content
Section titled “content”content:
ReactNode
Variables
Section titled “Variables”AsyncState
Section titled “AsyncState”
constAsyncState:ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>>,"content"> > &object&RefAttributes<HTMLDivElement>>>>
Selects a caller-rendered state region without fetching or inventing copy.