@plurid/plurid-react 0.0.0-22 → 0.0.0-23
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/distribution/index.js
CHANGED
|
@@ -5543,12 +5543,12 @@ class PluridApplication extends React.Component {
|
|
|
5543
5543
|
}, React__default["default"].createElement(ConnectedView, Object.assign({}, this.props)));
|
|
5544
5544
|
}
|
|
5545
5545
|
computeStore() {
|
|
5546
|
-
const {view: view, planes: planes, configuration: configuration, precomputedState: precomputedState, planesRegistrar: planesRegistrar, id: id, useLocalStorage: useLocalStorage} = this.props;
|
|
5546
|
+
const {view: view, planes: planes, configuration: configuration, precomputedState: precomputedState, planesRegistrar: planesRegistrar, id: id, useLocalStorage: useLocalStorage, hostname: hostname} = this.props;
|
|
5547
5547
|
registerPlanes(planes, planesRegistrar);
|
|
5548
5548
|
const currentState = this.store ? this.store.getState() : undefined;
|
|
5549
5549
|
const localState = pluridEngine.state.local.load(this.storeID, useLocalStorage);
|
|
5550
5550
|
const contextState = id && this.context && this.context.states[id] ? this.context.states[id] : undefined;
|
|
5551
|
-
const store = pluridEngine.state.compute(view, configuration, planesRegistrar, currentState, localState, precomputedState, contextState);
|
|
5551
|
+
const store = pluridEngine.state.compute(view, configuration, planesRegistrar, currentState, localState, precomputedState, contextState, hostname);
|
|
5552
5552
|
return store;
|
|
5553
5553
|
}
|
|
5554
5554
|
subscribeStore() {
|
|
@@ -5966,13 +5966,13 @@ const computePluridRoute = (matchedRoute, planesRegistrar, isoMatcher, directPla
|
|
|
5966
5966
|
if (!match) {
|
|
5967
5967
|
return () => () => React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
5968
5968
|
}
|
|
5969
|
-
const DirectPlane = renderDirectPlane(match, planesRegistrar);
|
|
5969
|
+
const DirectPlane = renderDirectPlane(match, planesRegistrar, hostname);
|
|
5970
5970
|
return DirectPlane;
|
|
5971
5971
|
}
|
|
5972
5972
|
if (!matchedRoute) {
|
|
5973
5973
|
const notFoundRoute = isoMatcher.match("/not-found", "route");
|
|
5974
5974
|
if (notFoundRoute && notFoundRoute.kind === "Route") {
|
|
5975
|
-
const notFoundRender = computePluridRoute(notFoundRoute, planesRegistrar, isoMatcher);
|
|
5975
|
+
const notFoundRender = computePluridRoute(notFoundRoute, planesRegistrar, isoMatcher, undefined, hostname);
|
|
5976
5976
|
return notFoundRender;
|
|
5977
5977
|
}
|
|
5978
5978
|
return () => () => React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
@@ -6161,7 +6161,7 @@ const PluridRouterBrowser = properties => {
|
|
|
6161
6161
|
matchedRoute = pluridIsoMatcher.current.match(notFoundPath, "route");
|
|
6162
6162
|
}
|
|
6163
6163
|
setMatchedRoute(matchedRoute);
|
|
6164
|
-
setPluridRoute(computePluridRoute(matchedRoute, pluridPlanesRegistrar.current, pluridIsoMatcher.current, hostname));
|
|
6164
|
+
setPluridRoute(computePluridRoute(matchedRoute, pluridPlanesRegistrar.current, pluridIsoMatcher.current, undefined, hostname));
|
|
6165
6165
|
}), [ mounted, matchedPath ]);
|
|
6166
6166
|
React.useEffect((() => {
|
|
6167
6167
|
if (!matchedRoute) {
|