meteor-persistent-minimongo2
meteor-persistent-minimongo2 copied to clipboard
how to wait for refresh()
Can anyone tell how can I wait for the collections to load from indexDB to local collection after I run persistentCollection.refresh(true)?
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.
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?
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.