@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.es.js
CHANGED
|
@@ -5503,12 +5503,12 @@ class PluridApplication extends Component {
|
|
|
5503
5503
|
}, React.createElement(ConnectedView, Object.assign({}, this.props)));
|
|
5504
5504
|
}
|
|
5505
5505
|
computeStore() {
|
|
5506
|
-
const {view: view, planes: planes, configuration: configuration, precomputedState: precomputedState, planesRegistrar: planesRegistrar, id: id, useLocalStorage: useLocalStorage} = this.props;
|
|
5506
|
+
const {view: view, planes: planes, configuration: configuration, precomputedState: precomputedState, planesRegistrar: planesRegistrar, id: id, useLocalStorage: useLocalStorage, hostname: hostname} = this.props;
|
|
5507
5507
|
registerPlanes(planes, planesRegistrar);
|
|
5508
5508
|
const currentState = this.store ? this.store.getState() : undefined;
|
|
5509
5509
|
const localState = state.local.load(this.storeID, useLocalStorage);
|
|
5510
5510
|
const contextState = id && this.context && this.context.states[id] ? this.context.states[id] : undefined;
|
|
5511
|
-
const store = state.compute(view, configuration, planesRegistrar, currentState, localState, precomputedState, contextState);
|
|
5511
|
+
const store = state.compute(view, configuration, planesRegistrar, currentState, localState, precomputedState, contextState, hostname);
|
|
5512
5512
|
return store;
|
|
5513
5513
|
}
|
|
5514
5514
|
subscribeStore() {
|
|
@@ -5926,13 +5926,13 @@ const computePluridRoute = (matchedRoute, planesRegistrar, isoMatcher, directPla
|
|
|
5926
5926
|
if (!match) {
|
|
5927
5927
|
return () => () => React.createElement(React.Fragment, null);
|
|
5928
5928
|
}
|
|
5929
|
-
const DirectPlane = renderDirectPlane(match, planesRegistrar);
|
|
5929
|
+
const DirectPlane = renderDirectPlane(match, planesRegistrar, hostname);
|
|
5930
5930
|
return DirectPlane;
|
|
5931
5931
|
}
|
|
5932
5932
|
if (!matchedRoute) {
|
|
5933
5933
|
const notFoundRoute = isoMatcher.match("/not-found", "route");
|
|
5934
5934
|
if (notFoundRoute && notFoundRoute.kind === "Route") {
|
|
5935
|
-
const notFoundRender = computePluridRoute(notFoundRoute, planesRegistrar, isoMatcher);
|
|
5935
|
+
const notFoundRender = computePluridRoute(notFoundRoute, planesRegistrar, isoMatcher, undefined, hostname);
|
|
5936
5936
|
return notFoundRender;
|
|
5937
5937
|
}
|
|
5938
5938
|
return () => () => React.createElement(React.Fragment, null);
|
|
@@ -6121,7 +6121,7 @@ const PluridRouterBrowser = properties => {
|
|
|
6121
6121
|
matchedRoute = pluridIsoMatcher.current.match(notFoundPath, "route");
|
|
6122
6122
|
}
|
|
6123
6123
|
setMatchedRoute(matchedRoute);
|
|
6124
|
-
setPluridRoute(computePluridRoute(matchedRoute, pluridPlanesRegistrar.current, pluridIsoMatcher.current, hostname));
|
|
6124
|
+
setPluridRoute(computePluridRoute(matchedRoute, pluridPlanesRegistrar.current, pluridIsoMatcher.current, undefined, hostname));
|
|
6125
6125
|
}), [ mounted, matchedPath ]);
|
|
6126
6126
|
useEffect((() => {
|
|
6127
6127
|
if (!matchedRoute) {
|