@trackunit/react-core-contexts 0.4.512 → 0.4.513

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 CHANGED
@@ -199,7 +199,7 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
199
199
  };
200
200
  };
201
201
  const useApolloClient = () => {
202
- const { graphqlManagerUrl, graphqlPublicUrl, graphqlInternalUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, isDev, tracingHeaders, } = reactCoreHooks.useEnvironment();
202
+ const { graphqlManagerUrl, graphqlPublicUrl, graphqlInternalUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, environment, tracingHeaders, } = reactCoreHooks.useEnvironment();
203
203
  const { token } = reactCoreHooks.useToken();
204
204
  const clientRef = React.useRef(null);
205
205
  /* DONT CHANGE THIS ! its there to ensure we dont recreate apollo client just because the token changes,
@@ -212,7 +212,7 @@ const useApolloClient = () => {
212
212
  graphqlManagerImageUploadUrl,
213
213
  graphqlInternalUrl,
214
214
  graphqlReportUrl,
215
- isDev,
215
+ isDev: environment === "dev",
216
216
  tracingHeaders,
217
217
  firstToken: token,
218
218
  });
package/index.esm.js CHANGED
@@ -175,7 +175,7 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
175
175
  };
176
176
  };
177
177
  const useApolloClient = () => {
178
- const { graphqlManagerUrl, graphqlPublicUrl, graphqlInternalUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, isDev, tracingHeaders, } = useEnvironment();
178
+ const { graphqlManagerUrl, graphqlPublicUrl, graphqlInternalUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, environment, tracingHeaders, } = useEnvironment();
179
179
  const { token } = useToken();
180
180
  const clientRef = useRef(null);
181
181
  /* DONT CHANGE THIS ! its there to ensure we dont recreate apollo client just because the token changes,
@@ -188,7 +188,7 @@ const useApolloClient = () => {
188
188
  graphqlManagerImageUploadUrl,
189
189
  graphqlInternalUrl,
190
190
  graphqlReportUrl,
191
- isDev,
191
+ isDev: environment === "dev",
192
192
  tracingHeaders,
193
193
  firstToken: token,
194
194
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "0.4.512",
3
+ "version": "0.4.513",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {