I am using a layout for my admin pages which brings user informations in a layout, so I don't have to query user information every time the page changes.

However, the problem is, when I query user information in layout, the page does not wait for the layout to load.

***myLayout.vue***

```
beforeMount() {
    // getting user info from the server by Vuex action
}

```

***myPage.vue***

```
layout: "myLayout"
...
mounted() {
    // bring user info from the Vuex store
}

```

In this case, I expect `beforeMount` to be done in `myLayout.vue`,

but `myPage.vue` does not wait and get `mounted` before Vuex action is completed.

so the lifecycle would be

`layout's beforeMount` -> `page's beforeMount` -> `page's mounted` -> `layout's mounted`

because page does not wait for beforeMount of a layout to be done.

Is there a way to prevent a page to be mounted before layout is mounted?