samuk190 / localbase

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

getting collection wrong data #56

Closed rendomnet closed 3 months ago

rendomnet commented 3 years ago

For some reason when I call db.collection('collectionName')

the first time it gives wrong data (not a list of keys but some other unrelated object) it only happens on the first time of calling db.collection('collectionName') if I call it again it will give correct result.

I think there is something with caching

teamsuperpanda commented 2 years ago

Could you post a code example or more information?

samuk190 commented 3 months ago

You can try using the async await, can you provide more info and set your code on codesandbox? if yes, please make another issue