Skip to content
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

Add @defer support to useSuspenseQuery #10324

Merged
merged 17 commits into from
Dec 21, 2022
Merged

Conversation

jerelmiller
Copy link
Member

@jerelmiller jerelmiller commented Dec 3, 2022

Relates to #10231 and #10286

Adds @defer support for useSuspenseQuery usage. Detailed design on behavior can be found in the RFC under the "Usage with @defer" heading.

Checklist:

  • If this PR is a new feature, please reference an issue where a consensus about the design was reached (not necessary for small changes)
  • Make sure all of the significant new logic is covered by tests

@jerelmiller jerelmiller force-pushed the react-suspense branch 3 times, most recently from f65b6c5 to f4e0ece Compare December 8, 2022 22:12
Base automatically changed from react-suspense to release-3.8 December 9, 2022 21:29
@changeset-bot
Copy link

changeset-bot bot commented Dec 9, 2022

🦋 Changeset detected

Latest commit: f164786

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@apollo/client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jerelmiller jerelmiller force-pushed the react-suspense-defer branch 3 times, most recently from bcb2e7b to 6eec38c Compare December 9, 2022 22:37
@jerelmiller jerelmiller marked this pull request as ready for review December 9, 2022 22:45
// created from `reobserve`. This function provides the original `reobserve`
// functionality, but returns a concast instead of a promise. Most consumers
// should prefer `reobserve` instead of this function.
public reobserveAsConcast(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to suggest a different name for this

Copy link
Member

@alessbell alessbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super excited for this!! 🎉🙌

@jerelmiller
Copy link
Member Author

Same test is flaky as the release-3.8 branch. I'll go ahead and merge this for now as we still need to fix that in the base branch.

@jerelmiller jerelmiller merged commit 95eb228 into release-3.8 Dec 21, 2022
@jerelmiller jerelmiller deleted the react-suspense-defer branch December 21, 2022 18:05
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants