-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Migrate all React Apollo SSR features into Apollo Client #6499
Conversation
Move the `react-apollo` projects `@apollo/react-ssr` features into this project. This will help us discontinue the `react-apollo` project sooner than later.
This keeps React SSR features out of the main bundle. React SSR can be accessed through the separate `@apollo/client/react/ssr` entry point.
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.
Looks great! Rebased and pushed one additional commit that seemed worthwhile.
* @apollo/client/core | ||
* @apollo/client/cache | ||
* @apollo/client/utilities | ||
* @apollo/client/react/ssr |
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.
Given that @apollo/client/react/ssr
is currently the only subdirectory entry point within @apollo/client/react
, I would love to see @apollo/client/react/components
and @apollo/client/react/hoc
added as well!
@benjamn . How would you import something like This particular code snippet: I'm on |
This PR migrates all
@apollo/react-ssr
functionality out of the https://github.com/apollographql/react-apollo repo, into this project. SSR features are kept out of the main@apollo/client
bundle, and are instead reachable through the@apollo/client/react/ssr
entry point.