Returns the resolved promise value from the closest <Await>.
<Await>
The resolved value from the nearest Await component
function SomeDescendant() { const value = useAsyncValue(); // ...}// somewhere in your app<Await resolve={somePromise}> <SomeDescendant /></Await>;@public Copy
function SomeDescendant() { const value = useAsyncValue(); // ...}// somewhere in your app<Await resolve={somePromise}> <SomeDescendant /></Await>;@public
framework
data
Returns the resolved promise value from the closest
<Await>.