apollo-client
apollo-client copied to clipboard
Moves the React hooks entrypoint from @apollo/client to @apollo/client/react
See this milestone for more information: https://github.com/apollographql/apollo-client/issues/8190
This PR aims to remove the react entrypoint from @apollo/client and have it accessible only through @apollo/client/react.
- Adjusts
@apollo/clientand@apollo/client/reactaccordingly - Adds an
@apollo/testing/reactentrypoint, used primarily for MockedProvider - Includes a basic codemod to help move react hook imports out of /client and into client/react
- Includes a basic migration guide, currently only including information about this change
- Updates all AC React docs
Checklist:
- [X] If this PR is a new feature, please reference an issue where a consensus about the design was reached (not necessary for small changes)
- [X] Make sure all of the significant new logic is covered by tests
Super excited about this! Let us know when you think this is ready for review @MrDoomBringer - thanks!
@MrDoomBringer 👋 can this be merged in now?
@jpvajda Yup! Just waiting for an approval review now :-)