@graphitation/apollo-react-relay-duct-tape
Advanced tools
Comparing version 0.5.0-store-observation.1 to 0.5.0-store-observation.2
# Change Log - @graphitation/apollo-react-relay-duct-tape | ||
This log was last generated on Tue, 05 Oct 2021 08:17:39 GMT and should not be manually modified. | ||
This log was last generated on Tue, 05 Oct 2021 08:17:41 GMT and should not be manually modified. | ||
@@ -9,3 +9,3 @@ <!-- Start content --> | ||
Tue, 05 Oct 2021 08:17:39 GMT | ||
Tue, 05 Oct 2021 08:17:41 GMT | ||
@@ -12,0 +12,0 @@ ### Changes |
@@ -66,7 +66,16 @@ var __create = Object.create; | ||
var import_client = __toModule(require("@apollo/client")); | ||
var import_hooks = __toModule(require("./storeObservation/hooks")); | ||
function useLazyLoadQuery(query, variables, options) { | ||
return (0, import_client.useQuery)(query, __objSpread({variables}, options)); | ||
if (query.watchQueryDocument) { | ||
return (0, import_hooks.useCompiledLazyLoadQuery)(query, __objSpread({variables}, options)); | ||
} else { | ||
return (0, import_client.useQuery)(query, __objSpread({variables}, options)); | ||
} | ||
} | ||
function useFragment(_fragmentInput, fragmentRef) { | ||
return fragmentRef; | ||
function useFragment(fragmentInput, fragmentRef) { | ||
if (fragmentInput.watchQueryDocument) { | ||
return (0, import_hooks.useCompiledFragment)(fragmentInput, fragmentRef); | ||
} else { | ||
return fragmentRef; | ||
} | ||
} | ||
@@ -73,0 +82,0 @@ function useSubscription(config) { |
@@ -22,1 +22,2 @@ var __create = Object.create; | ||
__reExport(exports, __toModule(require("./types"))); | ||
__reExport(exports, __toModule(require("./storeObservation"))); |
@@ -5,4 +5,4 @@ { | ||
"license": "MIT", | ||
"version": "0.5.0-store-observation.1", | ||
"main": "./lib/index", | ||
"version": "0.5.0-store-observation.2", | ||
"main": "./src/index.ts", | ||
"scripts": { | ||
@@ -37,4 +37,6 @@ "build": "monorepo-scripts build", | ||
}, | ||
"publishConfig": {}, | ||
"types": "./lib/index.d.ts" | ||
"publishConfig": { | ||
"main": "./lib/index", | ||
"types": "./lib/index.d.ts" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51178
28
970