meteor-persistent-minimongo2 icon indicating copy to clipboard operation
meteor-persistent-minimongo2 copied to clipboard

how to wait for refresh()

Open ashish979 opened this issue 7 years ago • 3 comments

Can anyone tell how can I wait for the collections to load from indexDB to local collection after I run persistentCollection.refresh(true)?

ashish979 avatar Feb 13 '18 08:02 ashish979

I see in the new version source code (0.4.0) that you can add a callback, but it seems that

persistentCollection.refresh(true, callback)

you have also new PersistentMinimongo2(colection, name, callback)

Update your package.

hacknlove avatar May 27 '18 11:05 hacknlove

Hi,

For some reason, refresh() stopped working for me very recently. I couldn't find any particular reason in my code, nor did see recent changes in frozeman:persistent-minimongo2, did someone else have this issue, could an update on a third party lib have caused it?

Fgerthoffert avatar Apr 15 '19 12:04 Fgerthoffert

My bad, I had a typo in my code and for some reason (likely around caching), the issue only started to appear today. No issues with refresh() it all works fine.

Fgerthoffert avatar Apr 15 '19 17:04 Fgerthoffert