<Await />
and can use the same component many times.Initial
persist
boolean
Show until we have data, even while loading or when an error occurred. By default it hides as soon as the promise starts loading.Pending
<Await.Loading>
initial
boolean
Show only on initial load (when data
is undefined
).Fulfilled
undefined
).<Await.Resolved>
data
any
Result from resolved promisepersist
boolean
Show old data while loading new data. By default it hides as soon as a new promise starts.Rejected
error
Error
Error from rejected promisepersist
boolean
Show old error while loading new data. By default it hides as soon as a new promise starts.Settled
persist
boolean
Show old error or data while loading new data. By default it hides as soon as a new promise starts.