@common-stack/frontend-stack-react 4.0.2-alpha.11 → 4.0.2-alpha.15
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import'reflect-metadata';import storage from'redux-persist/lib/storage/index.js';import {combineReducers}from'@reduxjs/toolkit';import autoMergeLevel2 from'redux-persist/lib/stateReconciler/autoMergeLevel2.js';import {createEpicMiddleware}from'redux-observable';import {createRouterReducer}from'@common-stack/remix-router-redux';import {persistReducer}from'redux-persist';import {REDUX_PERSIST_KEY}from'@common-stack/client-core';import {createReduxStore as createReduxStore$1}from'./base-redux-config.js';import {logger}from'../utils/index.js';import features from'../modules.js';import {rootEpic}from'./epic-config.js';const epicMiddlewareFunc = (apolloClient, services, container) => createEpicMiddleware({
|
|
1
|
+
import'reflect-metadata';import storage from'redux-persist/lib/storage/index.js';import {combineReducers}from'@reduxjs/toolkit';import autoMergeLevel2 from'redux-persist/lib/stateReconciler/autoMergeLevel2.js';import {createEpicMiddleware}from'redux-observable';import {createRouterReducer}from'@common-stack/remix-router-redux';import {persistReducer}from'redux-persist';import {REDUX_PERSIST_KEY,ClientTypes}from'@common-stack/client-core';import {createReduxStore as createReduxStore$1}from'./base-redux-config.js';import {logger}from'../utils/index.js';import features from'../modules.js';import {rootEpic}from'./epic-config.js';const epicMiddlewareFunc = (apolloClient, services, container) => createEpicMiddleware({
|
|
2
2
|
dependencies: {
|
|
3
3
|
apolloClient,
|
|
4
4
|
routes: features.getConfiguredRoutes(),
|
|
@@ -47,12 +47,12 @@ const createReduxStore = (apolloClient, services, container) => {
|
|
|
47
47
|
});
|
|
48
48
|
logger.debug('Created new Redux store');
|
|
49
49
|
}
|
|
50
|
-
if (container.isBound(
|
|
51
|
-
container.rebind(
|
|
50
|
+
if (container.isBound(ClientTypes.ReduxStore)) {
|
|
51
|
+
container.rebind(ClientTypes.ReduxStore).toDynamicValue(() => store).inRequestScope();
|
|
52
52
|
logger.debug('Rebound ReduxStore in container');
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
|
-
container.bind(
|
|
55
|
+
container.bind(ClientTypes.ReduxStore).toDynamicValue(() => store).inRequestScope();
|
|
56
56
|
logger.debug('Bound ReduxStore in container');
|
|
57
57
|
}
|
|
58
58
|
return { store };
|
|
@@ -56,7 +56,6 @@ loadContext) {
|
|
|
56
56
|
defaultNS: config.i18n.defaultNS,
|
|
57
57
|
react: config.i18n.react,
|
|
58
58
|
supportedLngs: config.i18n.supportedLngs,
|
|
59
|
-
// ...config.i18n, // use the same configuration as in your client side.
|
|
60
59
|
lng, // The locale we detected above
|
|
61
60
|
ns, // The namespaces the routes about to render want to use
|
|
62
61
|
backend: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/frontend-stack-react",
|
|
3
|
-
"version": "4.0.2-alpha.
|
|
3
|
+
"version": "4.0.2-alpha.15",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@chakra-ui/react": "^2.8.2",
|
|
33
|
-
"@common-stack/client-react": "4.0.2-alpha.
|
|
34
|
-
"@common-stack/core": "4.0.2-alpha.
|
|
33
|
+
"@common-stack/client-react": "4.0.2-alpha.14",
|
|
34
|
+
"@common-stack/core": "4.0.2-alpha.14",
|
|
35
35
|
"i18next-browser-languagedetector": "^8.0.0",
|
|
36
36
|
"i18next-fs-backend": "^2.3.1",
|
|
37
37
|
"i18next-http-backend": "^2.5.2",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"typescript": {
|
|
57
57
|
"definition": "lib/index.d.ts"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "16f5de3cd92233b49bd55bcb8b22261ed901bcb2"
|
|
60
60
|
}
|