-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deferred API updates #9070
Merged
Merged
Deferred API updates #9070
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ee0ac07
chore: remove Deferrable/ResolvedDeferrable types for raw Promises
brophdawg11 55ffecf
feat: support deferred arrays
brophdawg11 4d94cfb
chore:" remove typings from Deferred and useDeferredData
brophdawg11 d9cea85
Handle deferred render errors at the boundary
brophdawg11 20e3add
internal renames
brophdawg11 d51e0ae
do not handle fallback render errors in deferred error boundary
brophdawg11 f323d87
Remove Suspense from inside Deferred
brophdawg11 d1491d2
Rename test files to align casing
brophdawg11 ca696ab
Merge branch 'dev' into brophdawg11/remove-deferred-types
brophdawg11 ef59c48
Update changeset for Suspense removal
brophdawg11 7ee0a64
Support deferred(promise)
brophdawg11 4b308aa
Change deferred typings from any -> unknown
brophdawg11 a331f1b
Add changeset:
brophdawg11 9678b95
Bump bundle
brophdawg11 3c71f09
add tests for data memory router arrays/single deferreds
brophdawg11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jacob-ebey @pcattori We decided to leave generics off
useLoaderData
/useActionData
for6.4.0
so we can see how they differ in reality when you remove the network boundary, and we figure we will introduce the proper generics for them in a6.5.0+
release. Should we do the same foruseDeferredData
? Or do we think this type is safe and won't necessarily need to "break" based on what we land on foruseLoaderData
.Mainly want to make sure that the types that work in remix will work here too:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm honestly not sure here. I'm tempted to say rip it off until we have RR fully integrated in a SSR setup so we don't have any potential breaking changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I'm leaning that way too 🪓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4d94cfb