Again i'm asking for you help over firebase issues. For now i've put async/await to use the data from the snapshot outside my function but still doesent work:
database.ref('adress').once('value', (snapshot) => {
snapshot.forEach(async function (childSnapshot) {
const childKey = await childSnapshot.key;
const childData = await childSnapshot.val();
});
});
Can i get some help?