useAsyncValue
useAsyncValue
Framework Data
Summary
Returns the resolved promise value from the closest <Await>.
function SomeDescendant() {
const value = useAsyncValue();
// ...
}
// somewhere in your app
<Await resolve={somePromise}>
<SomeDescendant />
</Await>;Signature
function useAsyncValue(): unknownReturns
The resolved value from the nearest Await component