参考文档 ↗
返回最近的 Await 组件解析后的 Promise 值。
function SomeDescendant() { const value = useAsyncValue(); // ... } // somewhere in your app <Await resolve={somePromise}> <SomeDescendant /> </Await>;
useAsyncValue(): unknown