JSPM

@times-components/provider

1.40.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 139
  • Score
    100M100P100Q109598F
  • License BSD-3-Clause

Provider

Package Exports

  • @times-components/provider
  • @times-components/provider/dist/provider.js
  • @times-components/provider/rnw
  • @times-components/provider/rnw.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@times-components/provider) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Provider

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.

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Testing

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.

Future

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.