@common-stack/frontend-stack-react 8.6.1-alpha.0 → 8.6.1-alpha.1
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.
|
@@ -43,6 +43,13 @@ const containerMiddleware = async (req, res, next) => {
|
|
|
43
43
|
return apolloClient;
|
|
44
44
|
})
|
|
45
45
|
.inRequestScope();
|
|
46
|
+
// Bind ApolloClient so loaders/epics that resolve it directly (not via factory) work
|
|
47
|
+
if (container.isBound(ClientTypes.ApolloClient)) {
|
|
48
|
+
container.rebind(ClientTypes.ApolloClient).toConstantValue(apolloClient);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
container.bind(ClientTypes.ApolloClient).toConstantValue(apolloClient);
|
|
52
|
+
}
|
|
46
53
|
const services = merge({}, ...features.createServiceFunc.map((serviceFunc) => serviceFunc(container)));
|
|
47
54
|
const resolvers = features.getApolloResolvers(() => services);
|
|
48
55
|
apolloClient.setResolvers(resolvers);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/frontend-stack-react",
|
|
3
|
-
"version": "8.6.1-alpha.
|
|
3
|
+
"version": "8.6.1-alpha.1",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public"
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "f62eae13ecab9c0e79d9296cf56e17ac9d9f9a9b",
|
|
110
110
|
"typescript": {
|
|
111
111
|
"definition": "lib/index.d.ts"
|
|
112
112
|
}
|