@simonbackx/vue-app-navigation 2.10.0 → 2.11.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.js +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1840,7 +1840,7 @@ function getCurrentRoutes() {
|
|
|
1840
1840
|
}
|
|
1841
1841
|
function onCheckRoutes(handler) {
|
|
1842
1842
|
const instance = getCurrentInstance();
|
|
1843
|
-
instance._navigationCheckRoutesHandlers = [...instance.
|
|
1843
|
+
instance._navigationCheckRoutesHandlers = [...instance._navigationCheckRoutesHandlers ?? [], handler];
|
|
1844
1844
|
addCheckRoutesMountedHandler();
|
|
1845
1845
|
}
|
|
1846
1846
|
function onNotCheckRoutes(handler) {
|
|
@@ -2352,11 +2352,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2352
2352
|
const instance = getCurrentInstance();
|
|
2353
2353
|
provide("reactive_modalStackComponent", computed(() => getExposeProxy(instance)));
|
|
2354
2354
|
provide("reactive_navigation_present", present);
|
|
2355
|
-
onMounted(() => {
|
|
2356
|
-
var _a;
|
|
2355
|
+
onMounted(async () => {
|
|
2357
2356
|
if (props.initialPresents) {
|
|
2358
2357
|
for (const p of props.initialPresents) {
|
|
2359
|
-
|
|
2358
|
+
await present(p);
|
|
2360
2359
|
}
|
|
2361
2360
|
}
|
|
2362
2361
|
});
|