Apollo Client issue reproduction.
Overview
This article serves as a guide for users who encounter errors with Apollo Client and want to report them to the apollographql/apollo-client GitHub repository. It explains the importance of providing a small reproduction test case and offers a template repository that can be used to create the test case. The article also mentions that the template is suitable for reproductions of client-rendered React applications.
Features
- Small reproduction test case: The template repository allows users to create a small reproduction test case that helps the Apollo Client team identify and fix errors faster.
- Compatible with client-rendered React applications: The template repository is specifically designed for client-rendered React applications.
- Options for other frameworks: The article provides references to other repositories (apollographql/next-apollo-example and apollographql/rn-apollo-client-testbed) that offer reproduction examples for Next.js and React Native frameworks.
- Ability to use frameworks of choice: Users are encouraged to create reproduction test cases using their framework of choice, even if it is not React.
Installation
To install the Apollo Client Issue Reproduction template, follow these steps:
- Fork this repository to your GitHub account.
- Alternatively, fork the CodeSandbox for the template.
- If you want to start with a legacy Apollo Client 2.6 application, clone or checkout the ac2 branch.
- Clone the repository to your local machine.
- Install all dependencies by running
npm install. - Start the development server with
npm start. - Make the necessary changes to reproduce the error locally.
- Push your changes back to GitHub and inform the apollo-client team of the location.
Summary
This article provides guidance for users reporting errors to the apollographql/apollo-client GitHub repository. It emphasizes the importance of creating a small reproduction test case and offers a template repository for doing so. The template is ideal for client-rendered React applications, but users of other frameworks can also create reproduction test cases. The installation guide helps users set up the template repository on their local machine and explains the process of making changes and pushing them back to GitHub.