[Vuejs]-Problem with external async function in vue mounted

2👍

try await to the function like so:

 onMounted(async () => {
    state.Folders = await CreateUserFoldersList(store.state.UserData.AuthUser.uid, fire)
    state.isLoading = false
 })

1👍

state.Folders = await CreateUserFoldersList(store.state.UserData.AuthUser.uid, fire)
👤tauzN

Leave a comment