@simonbackx/vue-app-navigation 2.4.0 → 2.4.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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1816,7 +1816,7 @@ function getCurrentRoutes() {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
function onCheckRoutes(handler) {
|
|
1818
1818
|
const instance = getCurrentInstance();
|
|
1819
|
-
instance._navigationCheckRoutesHandlers = [...instance._navigationCheckRoutes, handler];
|
|
1819
|
+
instance._navigationCheckRoutesHandlers = [...instance._navigationCheckRoutes ?? [], handler];
|
|
1820
1820
|
}
|
|
1821
1821
|
function defineRoutes(routes) {
|
|
1822
1822
|
const component = useCurrentComponent();
|