samuk190 / localbase

A Firebase-Style Database ... Offline!
636 stars 84 forks source link

Needs querySnapshot #71

Open Wiase9889 opened 1 year ago

Wiase9889 commented 1 year ago

This local implementation of the great Firebase is a great idea for offline applications especially PWAs and ELECTRON apps. But there is one key thing missing, the real-time querySnapshot. This feature is very important as it reduces the time and stress to always reload the browser to see the effect.

Example:

get(myOffersRef).then((snapshot) => {
  snapshot.forEach((child) => {
    console.log(child.key, child.val().uid);
  });
}).catch((error) => {
  console.error(error);
});