-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: remove Deferrable/ResolvedDeferrable types for raw Promises * feat: support deferred arrays * chore:" remove typings from Deferred and useDeferredData To be added back in once we figur eout typing for useLoaderData in 6.5 * Handle deferred render errors at the boundary * internal renames * do not handle fallback render errors in deferred error boundary * Remove Suspense from inside Deferred * Rename test files to align casing * Update changeset for Suspense removal * Support deferred(promise) * Change deferred typings from any -> unknown * Add changeset: * Bump bundle * add tests for data memory router arrays/single deferreds
- Loading branch information
1 parent
6ac05b4
commit 92aa5bb
Showing
15 changed files
with
811 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
"react-router": patch | ||
"@remix-run/router": patch | ||
--- | ||
|
||
Deferred API Updates | ||
|
||
- 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 raw `Promise`'s and `Awaited` | ||
- Remove generics from `useDeferredData` until `useLoaderData` generic is decided in 6.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.