@hai3/react 0.2.0-alpha.0 → 0.2.0-alpha.1
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/dist/index.cjs +2 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/package.json +10 -4
package/dist/index.cjs
CHANGED
|
@@ -5823,17 +5823,11 @@ function useNavigation() {
|
|
|
5823
5823
|
},
|
|
5824
5824
|
[app.actions]
|
|
5825
5825
|
);
|
|
5826
|
-
const
|
|
5827
|
-
if (typeof window === "undefined") return null;
|
|
5828
|
-
const parts = window.location.pathname.split("/").filter(Boolean);
|
|
5829
|
-
const screenId = parts[0];
|
|
5830
|
-
if (!screenId) return null;
|
|
5831
|
-
return app.routeRegistry?.getScreensetForScreen(screenId) ?? null;
|
|
5832
|
-
};
|
|
5826
|
+
const currentScreenset = currentScreen ? app.routeRegistry?.getScreensetForScreen(currentScreen) ?? null : null;
|
|
5833
5827
|
return {
|
|
5834
5828
|
navigateToScreen: navigateToScreen2,
|
|
5835
5829
|
navigateToScreenset,
|
|
5836
|
-
currentScreenset
|
|
5830
|
+
currentScreenset,
|
|
5837
5831
|
currentScreen
|
|
5838
5832
|
};
|
|
5839
5833
|
}
|