Skip to content

In pinia action, should I use vue-fire useCollection or firebase directly ? #1453

Discussion options

You must be logged in to vote

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:

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mrleblanc101
Comment options

@posva
Comment options

posva Dec 1, 2023
Maintainer

@mrleblanc101
Comment options

Answer selected by mrleblanc101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants