react-router@6.4.0-pre.11
版本发布时间: 2022-08-02 22:18:58
remix-run/react-router最新发布版本:react-router@6.26.2(2024-09-09 23:14:53)
Patch Changes
-
c3406eb9: fix: Rename
<Deferred>
to<Await>
(#9095)- We are no longer replacing the
Promise
onloaderData
with the value/error when it settles so it's now always aPromise
. - To that end, we changed from
<Deferred value={promise}>
to<Await resolve={promise}>
for clarity, and it also now supports using<Await>
with raw promises from anywhere, not only those onloaderData
from a defer() call.- Note that raw promises will not be automatically cancelled on interruptions so they are not recommended
- The hooks are now
useAsyncValue
/useAsyncError
- We are no longer replacing the
-
Updated dependencies
- @remix-run/router@0.2.0-pre.6