Using nuxt-vuefire with Pinia #1341
-
|
Hi all, I am pulling data from Firestore database into Pinia using nuxt-vuefire. But the data is put into the array within the first element of that array. The data should fill the array. What am I doing wrong? This is the result of 'recipients': it should be: |
Beta Was this translation helpful? Give feedback.
Answered by
chiuwah
Apr 11, 2023
Replies: 1 comment 2 replies
-
|
Sorry, I should have read the documentation better. Turns out that I could directly use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
chiuwah
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, I should have read the documentation better. Turns out that I could directly use
useCollectionon the state. The state gets updated automatically once data is fetched from firestore.