function onBeforeRouteUpdate(updateGuard) {
    if (!getCurrentInstance()) {
        warn(
            "getCurrentInstance() returned null. onBeforeRouteUpdate() must be called at the top of a setup function"
        );