@graphql-codegen/typescript-react-apollo 3.2.6-alpha-7c50b8781.0 → 3.2.6-alpha-ef6d8c7c9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -242,7 +242,7 @@ class ReactApolloVisitor extends visitorPluginCommon.ClientSideBaseVisitor {
242
242
  const lazyOperationName = this.convertName(nodeName, {
243
243
  suffix: changeCaseAll.pascalCase('LazyQuery'),
244
244
  useTypesPrefix: false,
245
- });
245
+ }) + this.config.hooksSuffix;
246
246
  hookFns.push(`export function use${lazyOperationName}(baseOptions?: ${this.getApolloReactHooksIdentifier()}.LazyQueryHookOptions<${operationResultType}, ${operationVariablesTypes}>) {
247
247
  const options = {...defaultOptions, ...baseOptions}
248
248
  return ${this.getApolloReactHooksIdentifier()}.useLazyQuery<${operationResultType}, ${operationVariablesTypes}>(${this.getDocumentNodeVariable(node, documentVariableName)}, options);
package/index.mjs CHANGED
@@ -236,7 +236,7 @@ class ReactApolloVisitor extends ClientSideBaseVisitor {
236
236
  const lazyOperationName = this.convertName(nodeName, {
237
237
  suffix: pascalCase('LazyQuery'),
238
238
  useTypesPrefix: false,
239
- });
239
+ }) + this.config.hooksSuffix;
240
240
  hookFns.push(`export function use${lazyOperationName}(baseOptions?: ${this.getApolloReactHooksIdentifier()}.LazyQueryHookOptions<${operationResultType}, ${operationVariablesTypes}>) {
241
241
  const options = {...defaultOptions, ...baseOptions}
242
242
  return ${this.getApolloReactHooksIdentifier()}.useLazyQuery<${operationResultType}, ${operationVariablesTypes}>(${this.getDocumentNodeVariable(node, documentVariableName)}, options);
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-react-apollo",
3
- "version": "3.2.6-alpha-7c50b8781.0",
3
+ "version": "3.2.6-alpha-ef6d8c7c9.0",
4
4
  "description": "GraphQL Code Generator plugin for generating a ready-to-use React Components/HOC/Hooks based on GraphQL operations",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
7
7
  "graphql-tag": "^2.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-codegen/plugin-helpers": "2.5.0-alpha-7c50b8781.0",
11
- "@graphql-codegen/visitor-plugin-common": "2.6.1-alpha-7c50b8781.0",
10
+ "@graphql-codegen/plugin-helpers": "^2.4.0",
11
+ "@graphql-codegen/visitor-plugin-common": "2.7.0-alpha-ef6d8c7c9.0",
12
12
  "auto-bind": "~4.0.0",
13
13
  "change-case-all": "1.0.14",
14
14
  "tslib": "~2.3.0"