Hey all!
I’m having an issue with Meteor on one of the projects I’m working on and can’t really figure it out how to fix the behaviour.
Here’s the setup:
- The client has a self-hosted Meteor instance (AFAIK) but I have no access of information about the version.
- I’m building the iOS app that’s using the semi-official iOS client: GitHub - EngrAhsanAli/MeteorDDP: MeteorDDP is really helpful to integrate servers written in meteor (a framework written in javascript) using native Swift in iOS.. I saw the client pop up a couple of times.
- The database is relatively small with 7-8 collections with a couple of entries per collection.
Since the iOS client lacks proper local persistence, the data has to be synced every time the app is restarted.
When the app starts I’m subscribing to all collections and update the documents accordingly (in memory) so the UI can subscribe to changes and update reactively.
While a web app works as expected I’ve noticed that the ready
message is received before any added
message which causes the UI to stop loading prematurely and list items appear one-by-one.
From my understanding Meteor should only send ready
when an initial set of documents have syncronized.
- When one or more subscriptions have finished sending their initial batch of data, the server will send a
ready
message with their IDs.
Is this expected? I’m I missing something?
Thanks!