Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

getDataSnapshotFirebase

const getDataFromFirebase = () => {
    fireRef.onSnapshot((querySnapshot) => {
      const items = [];
      querySnapshot.forEach((doc) => {
        items.push(doc.data());
      });
      setstate(items);
    });
  };
 
PREVIOUS NEXT
Tagged: #getDataSnapshotFirebase
ADD COMMENT
Topic
Name
3+6 =