useAsyncValue(): unknown
Returns the resolved promise value from the closest <Await>.
<Await>
function SomeDescendant() { const value = useAsyncValue(); // ... } // somewhere in your app <Await resolve={somePromise}> <SomeDescendant /> </Await>