The provider package manages the connections to GraphQL
(GQL). At a fundamental level, the package simply exports providers that take
GQL queries (from the provider queries package), and use
React Apollo to fetch data from
the GQL server. These providers can be configured to take a debounceTimeMs
prop which adds debounce functionality to the provider calls to ensure better
performance and user experience.
This package is where we intend to add all future functionalities and features that fix any issues, or fill any gaps, we find in the React Apollo API.
Please read CONTRIBUTING.md before contributing to this package
Please see our main README.md to get the project running locally
The code can be formatted and linted in accordance with the agreed standards.
yarn fmt
yarn lint
This package uses yarn (latest) to run unit tests on each platform with jest.
yarn test:web
Visit the official storybook to see our available provider templates.
We currently use an older version of the React Apollo API. We are planning on
updating our usage of this package to use the newer
Query
component.
See this issue.