@frontegg/react-hooks
Advanced tools
Comparing version 2.2.0-alpha.790043453 to 2.2.0-alpha.790159397
@@ -983,7 +983,8 @@ import { S as Subscription, c as useIsomorphicLayoutEffect, R as ReactReduxContext, s as shallowEqual, P as Provider } from './index-53123c62.js'; | ||
var FronteggProvider = function (_a) { | ||
var _b, _c; | ||
var _b, _c, _d, _e; | ||
var children = _a.children, app = _a.app, contextOptions = _a.contextOptions, setLoadingProps = _a.setLoading; | ||
var context = (_c = (_b = app === null || app === void 0 ? void 0 : app.options) === null || _b === void 0 ? void 0 : _b.contextOptions) !== null && _c !== void 0 ? _c : contextOptions; | ||
var previewMode = (_e = (_d = app === null || app === void 0 ? void 0 : app.options) === null || _d === void 0 ? void 0 : _d.previewMode) !== null && _e !== void 0 ? _e : false; | ||
ContextHolder.setContext(context); | ||
var store = useMemo(function () { return createFronteggStore({ context: context }, app); }, [app]); | ||
var store = useMemo(function () { return createFronteggStore({ context: context }, app, previewMode); }, [app, previewMode]); | ||
return (React.createElement(Provider, { store: store }, | ||
@@ -990,0 +991,0 @@ React.createElement(FronteggContent, { setLoading: setLoadingProps !== null && setLoadingProps !== void 0 ? setLoadingProps : setLoading, app: app }, children))); |
{ | ||
"name": "@frontegg/react-hooks", | ||
"libName": "FronteggReactHooks", | ||
"version": "2.2.0-alpha.790043453", | ||
"version": "2.2.0-alpha.790159397", | ||
"author": "Frontegg LTD", | ||
@@ -9,5 +9,5 @@ "module": "index.esm.js", | ||
"dependencies": { | ||
"@frontegg/redux-store": "2.2.0-alpha.790043453" | ||
"@frontegg/redux-store": "2.2.0-alpha.790159397" | ||
}, | ||
"gitHead": "5dc7ea2a5b084295448db3e57110176b9b171e72", | ||
"gitHead": "202b2ef807693b6c71282a855de4df32f2fbba4b", | ||
"main": "index.js", | ||
@@ -14,0 +14,0 @@ "es2015": "index.es.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1546612
9469
+ Added@frontegg/redux-store@2.2.0-alpha.790159397(transitive)
+ Added@frontegg/rest-api@2.2.0-alpha.790159397(transitive)
- Removed@frontegg/redux-store@2.2.0-alpha.790043453(transitive)
- Removed@frontegg/rest-api@2.2.0-alpha.790043453(transitive)