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