Here the snapshot is updated and its not reflected in the database when I check the firebase console
database().ref('users').set('uid');database().ref('users').on('value', snapshot => { console.log('User data: ', snapshot.val()); });
and when I put an await before the set
await database().ref('users').set('uid');
it seems to be stuck on that line and the rest of the code is not executed. I'm not shown any errors.
Also i am not able to read data from database too for some reason
Could some explain whats happening and what I could do about it?