dev
Viewing docs for dev branch, not the latest release. View latest
useAsyncValue

useAsyncValue

Returns the resolved data from the closest <Await> ancestor component.

function SomeDescendant() {
  const value = useAsyncValue();
  // ...
}
<Await resolve={somePromise}>
  <SomeDescendant />
</Await>

Additional Resources

Guides

API

Docs and examples licensed under MIT