In pinia action, should I use vue-fire useCollection or firebase directly ?
              
              #1453
            
            -
| Instead of binding a collection to the store, I want to query firebase when a pinia action is triggered. 
 I do this because when I delete a "Project", I want to delete any "Entries" which have a reference to this project. So I was wondering, am I misundertsanding how to use this plugin ? | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
| VueFire exposes composables so they must be used at top level: defineStore('...', () => {
  useDocument(...)
})Then you use Firebase JS SDK to write to the database. I think this should help too: | 
Beta Was this translation helpful? Give feedback.
VueFire exposes composables so they must be used at top level:
Then you use Firebase JS SDK to write to the database. I think this should help too: