Skip to content

useCollection usingwithConverter and toFirestore not called after addDoc #1437

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

You must be logged in to vote

That's because you are passing just the collection without the converter to addDoc(). You need to pass it there too:

addDoc(collection(db, 'entries').withConverter(...), newDoc)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@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