@trackunit/react-core-contexts 0.4.583 → 0.4.584
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 +9 -1
- package/index.esm.js +9 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -152,7 +152,15 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
|
|
|
152
152
|
client: new client.ApolloClient({
|
|
153
153
|
name: "Manager",
|
|
154
154
|
connectToDevTools: isDev,
|
|
155
|
-
|
|
155
|
+
// LegacyServicePlan added by team SPIEX so Apollo Client doesn't merge service plans simply because they have the same id
|
|
156
|
+
// See more here: https://stackoverflow.com/questions/78189868/apollo-is-returning-data-wrong-but-is-correct-in-network-inspector
|
|
157
|
+
cache: new client.InMemoryCache({
|
|
158
|
+
typePolicies: {
|
|
159
|
+
LegacyServicePlan: {
|
|
160
|
+
keyFields: false,
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
}),
|
|
156
164
|
defaultOptions,
|
|
157
165
|
link: client.from([
|
|
158
166
|
errorLink,
|
package/index.esm.js
CHANGED
|
@@ -132,7 +132,15 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
|
|
|
132
132
|
client: new ApolloClient({
|
|
133
133
|
name: "Manager",
|
|
134
134
|
connectToDevTools: isDev,
|
|
135
|
-
|
|
135
|
+
// LegacyServicePlan added by team SPIEX so Apollo Client doesn't merge service plans simply because they have the same id
|
|
136
|
+
// See more here: https://stackoverflow.com/questions/78189868/apollo-is-returning-data-wrong-but-is-correct-in-network-inspector
|
|
137
|
+
cache: new InMemoryCache({
|
|
138
|
+
typePolicies: {
|
|
139
|
+
LegacyServicePlan: {
|
|
140
|
+
keyFields: false,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
}),
|
|
136
144
|
defaultOptions,
|
|
137
145
|
link: from([
|
|
138
146
|
errorLink,
|