Skip to content

Version 11.1.0

Compare
Choose a tag to compare
@jaydenseric jaydenseric released this 22 Sep 01:18
· 170 commits to master since this release

Minor

  • Allow React component displayName and propTypes to be removed in production builds, fixing #51.
  • Refactored the useGraphQL React hook to do less work for following renders if the operation and fetchOptionsOverride options are defined outside the component or memoized using the React.useMemo hook.
  • Memoize what the useGraphQL React hook returns for more efficient hook composition.
  • Added a new loadedCacheValue property to the GraphQL operation status object returned by the useGraphQL React hook. This allows cache for an earlier operation to be rendered while loading changes to the query, variables, or fetch options.

Patch

  • Updated dependencies.
  • Use coverage-node to enforce 100% code coverage for tests.
  • Increased the universal API size-limit from 3 KB to 3.5 KB.
  • Updated the useGraphQL React hook examples to use the GitHub GraphQL API.
  • Improved the useGraphQL React hook tests.
  • Improved documentation.