react-router@6.4.0-pre.10
版本发布时间: 2022-07-22 23:52:54
remix-run/react-router最新发布版本:react-router@6.26.2(2024-09-09 23:14:53)
Patch Changes
-
feat: Deferred API Updates (#9070)
- Removes
<Suspense>
from inside<Deferred>
, requires users to render their own suspense boundaries - Updates
Deferred
to use a true error boundary to catch render errors as well as data errors - Support array and single promise usages
-
return deferred([ await critical(), lazy() ])
-
return deferred(lazy())
-
- Remove
Deferrable
/ResolvedDeferrable
in favor of rawPromise
's andAwaited
- Remove generics from
useDeferredData
untiluseLoaderData
generic is decided in 6.5
- Removes
-
Updated dependencies
- @remix-run/router@0.2.0-pre.5