What's the best way to list files with vuefire (and Nuxt) ? #1293
-
I'm currently using nuxt, and I was looking for an utility to list files under a specific folder. I haven't found anything, so I went "vanilla" using the firebase documentation: const user = useCurrentUser();
const storage = useFirebaseStorage();
const folderRef = storageRef(storage, `/users/${user.value?.uid}/documents`);
const { items: files } = await list(folderRef); This works, however when attempting to use it with So I was wondering, is listing the files this way the proper way ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
About the error: You likely need to ensure the current user is available before rendering the page Using the Firebase SDK directly is the correct way here. There might be something added in the future but still nothing (added to the roadmap). |
Beta Was this translation helpful? Give feedback.
About the error: You likely need to ensure the current user is available before rendering the page
Using the Firebase SDK directly is the correct way here. There might be something added in the future but still nothing (added to the roadmap).