@frontegg/redux-store 5.7.0 → 5.9.0
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/node/toolkit/index.js +2 -2
- package/package.json +1 -1
- package/toolkit/index.d.ts +1 -1
- package/toolkit/index.js +2 -2
package/node/toolkit/index.js
CHANGED
|
@@ -37,7 +37,7 @@ const { reducer: rootReducer } = toolkit.createSlice({
|
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
|
-
const createFronteggStore = (rootInitialState, storeHolder, previewMode = false, authInitialState, overrideInitialState) => {
|
|
40
|
+
const createFronteggStore = (rootInitialState, storeHolder, previewMode = false, authInitialState, overrideInitialState, builderMode = false) => {
|
|
41
41
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
42
42
|
const isSSR = typeof window === 'undefined';
|
|
43
43
|
let holder = storeHolder;
|
|
@@ -48,7 +48,7 @@ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false,
|
|
|
48
48
|
holder = window;
|
|
49
49
|
}
|
|
50
50
|
if (!holder.store) {
|
|
51
|
-
if (!previewMode) {
|
|
51
|
+
if (!previewMode && !builderMode) {
|
|
52
52
|
restApi.ContextHolder.setContext(rootInitialState.context);
|
|
53
53
|
}
|
|
54
54
|
const sagaMiddleware = createSagaMiddleware__default['default']();
|
package/package.json
CHANGED
package/toolkit/index.d.ts
CHANGED
package/toolkit/index.js
CHANGED
|
@@ -32,7 +32,7 @@ const { reducer: rootReducer } = createSlice({
|
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
});
|
|
35
|
-
const createFronteggStore = (rootInitialState, storeHolder, previewMode = false, authInitialState, overrideInitialState) => {
|
|
35
|
+
const createFronteggStore = (rootInitialState, storeHolder, previewMode = false, authInitialState, overrideInitialState, builderMode = false) => {
|
|
36
36
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
37
37
|
const isSSR = typeof window === 'undefined';
|
|
38
38
|
let holder = storeHolder;
|
|
@@ -43,7 +43,7 @@ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false,
|
|
|
43
43
|
holder = window;
|
|
44
44
|
}
|
|
45
45
|
if (!holder.store) {
|
|
46
|
-
if (!previewMode) {
|
|
46
|
+
if (!previewMode && !builderMode) {
|
|
47
47
|
ContextHolder.setContext(rootInitialState.context);
|
|
48
48
|
}
|
|
49
49
|
const sagaMiddleware = createSagaMiddleware();
|