@common-stack/frontend-stack-react 4.0.1-alpha.40 → 4.0.1-alpha.41

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.
@@ -11,7 +11,7 @@ const errorLink = onError(({ graphQLErrors, networkError }) => {
11
11
  }
12
12
  });
13
13
  const createApolloClient = ({ scope, isDev, isDebug, isSSR, getDataIdFromObject, clientState, httpGraphqlURL, httpLocalGraphqlURL, initialState, logger, }) => {
14
- logger.debug('Initializing Apollo Client with parameters', {
14
+ logger.debug('Initializing Apollo Client with parameters, {%o}', {
15
15
  scope,
16
16
  isDev,
17
17
  isDebug,
@@ -85,7 +85,7 @@ const createApolloClient = ({ scope, isDev, isDebug, isSSR, getDataIdFromObject,
85
85
  link = new BatchHttpLink({
86
86
  uri: httpLocalGraphqlURL,
87
87
  fetch,
88
- batchInterval: 2000,
88
+ batchInterval: 200,
89
89
  batchMax: 100,
90
90
  credentials: 'include',
91
91
  });
@@ -104,7 +104,6 @@ const createApolloClient = ({ scope, isDev, isDebug, isSSR, getDataIdFromObject,
104
104
  credentials: 'include',
105
105
  connectToDevTools: isBrowser && (isDev || isDebug),
106
106
  };
107
- logger.trace('Apollo client options', params);
108
107
  if (isSSR) {
109
108
  if (isBrowser) {
110
109
  params.ssrForceFetchDelay = 100;
@@ -113,6 +112,7 @@ const createApolloClient = ({ scope, isDev, isDebug, isSSR, getDataIdFromObject,
113
112
  params.ssrMode = true;
114
113
  }
115
114
  }
115
+ logger.trace('Apollo client options [%o]', params);
116
116
  const apolloClient = new ApolloClient(params);
117
117
  logger.debug('Created new Apollo client');
118
118
  initializeCache({ cache, initialState, clientState, logger });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/frontend-stack-react",
3
- "version": "4.0.1-alpha.40",
3
+ "version": "4.0.1-alpha.41",
4
4
  "description": "Client Module for react app",
5
5
  "homepage": "https://github.com/cdmbase/fullstack-pro#readme",
6
6
  "bugs": {
@@ -52,5 +52,5 @@
52
52
  "typescript": {
53
53
  "definition": "lib/index.d.ts"
54
54
  },
55
- "gitHead": "d0bece51592356e7ee1c7fcb3033b36416b2d41b"
55
+ "gitHead": "de0e9a2abdbb82e0a17a178317d8f2205c9bdc6d"
56
56
  }