samuk190 / localbase

A Firebase-Style Database ... Offline!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Needs querySnapshot

Wiase9889 opened this issue · comments

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);
});