Open feelforyou opened 1 year ago
You can append the id to your documents with the FirestoreDataConverter
. You will receive the id in the fromFirestore
function with the snapshot.id
value. An example how to do this is in the documentation under transforming-data
@feelforyou did you ever get the { idField: 'id' } to grab the id from the doc
When i try to debug and console.log (listings) or console.log(car) I dont get id for each item, except id i can get every field that is in my collection. I think {idField:'id:} is not grabbing id from the collection
As a side note I am using firebase 9, installed react-firebase-hooks @latest , created Vite react project @latest
simple example: