-
Hello, I recently started moving my personal blog to use vuepress-next. It's awesome! Currently, I am using the I have noticed the So for my use-case the solution is: onBeforeMount(async () => {
const pages = usePagesData()
const res = await Promise.all(Object.values(pages.value).map(p => p()))
}) Wondering if this was just didn't get documented or is planned for removal or changes. I might switch over to using it (provided my logic correct). Thanks again for this working on this, vuepress is really awesome! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
FYI: #72 The hook |
Beta Was this translation helpful? Give feedback.
FYI: #72
The hook
usePagesData
is good to use but not good for scalebility, it will course us to have to fetch all data of pages, while we only need a part of info in most cases.