@trackunit/react-core-contexts 2.8.7 → 2.9.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.
- package/index.cjs.js +11 -0
- package/index.esm.js +11 -0
- package/migrations/entry.js.map +1 -0
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -402,6 +402,17 @@ const createApolloClient = ({ graphqlPublicUrl, graphqlInternalUrl, graphqlRepor
|
|
|
402
402
|
// See more here: https://stackoverflow.com/questions/78189868/apollo-is-returning-data-wrong-but-is-correct-in-network-inspector
|
|
403
403
|
cache: new client.InMemoryCache({
|
|
404
404
|
typePolicies: {
|
|
405
|
+
IrisApp: {
|
|
406
|
+
keyFields: ["irisAppId"],
|
|
407
|
+
fields: {
|
|
408
|
+
// `IrisAppMarketplace` is embedded and non-normalized, so a narrow marketplace
|
|
409
|
+
// selection would otherwise replace the whole object and evict fields a wider
|
|
410
|
+
// query already cached.
|
|
411
|
+
marketplace: {
|
|
412
|
+
merge: true,
|
|
413
|
+
},
|
|
414
|
+
},
|
|
415
|
+
},
|
|
405
416
|
LegacyServicePlan: {
|
|
406
417
|
keyFields: false,
|
|
407
418
|
},
|
package/index.esm.js
CHANGED
|
@@ -400,6 +400,17 @@ const createApolloClient = ({ graphqlPublicUrl, graphqlInternalUrl, graphqlRepor
|
|
|
400
400
|
// See more here: https://stackoverflow.com/questions/78189868/apollo-is-returning-data-wrong-but-is-correct-in-network-inspector
|
|
401
401
|
cache: new InMemoryCache({
|
|
402
402
|
typePolicies: {
|
|
403
|
+
IrisApp: {
|
|
404
|
+
keyFields: ["irisAppId"],
|
|
405
|
+
fields: {
|
|
406
|
+
// `IrisAppMarketplace` is embedded and non-normalized, so a narrow marketplace
|
|
407
|
+
// selection would otherwise replace the whole object and evict fields a wider
|
|
408
|
+
// query already cached.
|
|
409
|
+
marketplace: {
|
|
410
|
+
merge: true,
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
},
|
|
403
414
|
LegacyServicePlan: {
|
|
404
415
|
keyFields: false,
|
|
405
416
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/react/core-contexts/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
|