Skip to content

document.onSnapshot is not a function when trying to sync a single value instead of a collection #1303

Closed Answered by posva
holmesadrianh asked this question in Questions and Help
Discussion options

You must be logged in to vote

the get() function already returns a promise. VueFire can only bind documents or collections, it cannot bind a single value as there wouldn't been automatic updates, which is where the onSnapshot() is not a function comes from 🙂

BTW, you should definitely use Firebase v9 + VueFire v3. The v2 is very old and is not receiving any updates anymore.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1302 on February 12, 2023 09:27.