How to get a document using useDocument #1268
Replies: 2 comments 1 reply
-
You can await the promise from https://vuefire.vuejs.org/guide/realtime-data.html#subscription-state note that useDocument is a composable and meant to be used within setup of components |
Beta Was this translation helpful? Give feedback.
-
Hi @posva thank you again. I have a pinia store, and I have a computed property I would like to obtain the same result, I mean, get a subscription in this document (board), but I can not I don't know why. Please could you help me with a example that simulate my use case Thank you PS: Eduardo, feliz navidad. Y perdona que te haga trabajar, contesta cuando puedas que bastante ya haces :) |
Beta Was this translation helpful? Give feedback.
-
Hi @posva and other Vuefire Team
I have the following code
I would like to use usedocument, to obtain a real Time ref but I have problemst to get the Document
Bu I don't know how I can get the value, I use .value but always is undefined. I follow: https://vuefire.vuejs.org/guide/realtime-data.html
Could you help me to solve it?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions