ground-db icon indicating copy to clipboard operation
ground-db copied to clipboard

Feature: Reactive var when all collections are loaded on startup of app.

Open Obiwarn opened this issue 10 years ago • 2 comments
trafficstars

Obiwarn avatar Oct 29 '15 13:10 Obiwarn

Feature request should be more specific, please take the time to provide information on why you think it's going to be helpful and some use case scenarios. Thank you!

tagrudev avatar Oct 30 '15 08:10 tagrudev

To reduce traffic my app checks on startup if its data is up to date. Only if not it subscribes to collections. The problem is I don't know when ground:db did finish initialization of my local collections when i start the app (i.e. loading from localstore).

When I do the "is up to date" check in Meteor.onStartup sometimes the local collection is not fully loaded yet (e.g. only 3 of 5 docs are loaded).

Or is there already an event fired?

Obiwarn avatar Oct 30 '15 10:10 Obiwarn