How to handle loading state using useCollection #1295
-
Hello! 👋 I'm building a SPA in vue 3 using firebase and Pinia. I would like to understand how can I display a loading state with useCollection. Currently I'm following this page in the doc and this is what I have so far
I've found this discussion but I would like to know if there is a better solution than adding a callback to the promise. Could someone provide an example on how handling this with the pending prop? 😊 Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think the documentation didn't have the example when you posted this but you can find them here: https://vuefire.vuejs.org/guide/realtime-data.html#Subscription-state |
Beta Was this translation helpful? Give feedback.
I think the documentation didn't have the example when you posted this but you can find them here: https://vuefire.vuejs.org/guide/realtime-data.html#Subscription-state