async created() in older component #17321
-
I'm migrating a webpack v2 SPA to Vite v5 SPA export default defineComponent({
// ...
setup() {
// ...
return {
// ...
async created() {
const store = useStore()
await store.$db().model('post').api().get(`${process.env.API_ROOT}/api/v1/post/`)
await store.$db().model('comment').api().get(`${process.env.API_ROOT}/api/v1/comment/`)
}
}
}
}) Where is that coming from? Can you tell me what that is? |
Beta Was this translation helpful? Give feedback.
Answered by
idc77
Jul 4, 2024
Replies: 1 comment
-
async created is a Vue2 feature, it's essentially onBeforeMount Seems like discussions here are useless and one has to create an issue to receive help |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
idc77
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
async created is a Vue2 feature, it's essentially onBeforeMount
Seems like discussions here are useless and one has to create an issue to receive help