Closed andrewvmail closed 5 years ago
Having a hard time to sending back GeoLocation data in the initial query. Whats happening is this.loc is i see this.loc being null on the server side and a few ms later the query runs again with loc sent down the wire. I
subscriptions: function () { if(Meteor.isClient) { this.loc = Geolocation.latLng(); } this._terms = { view: this.view, limit: this.params.limit || getSetting('postsPerPage', 10), loc: this.loc }; this.postsListSub = coreSubscriptions.subscribe('postsList', this._terms); },
Having a hard time to sending back GeoLocation data in the initial query. Whats happening is this.loc is i see this.loc being null on the server side and a few ms later the query runs again with loc sent down the wire. I
subscriptions: function () { if(Meteor.isClient) { this.loc = Geolocation.latLng(); } this._terms = { view: this.view, limit: this.params.limit || getSetting('postsPerPage', 10), loc: this.loc }; this.postsListSub = coreSubscriptions.subscribe('postsList', this._terms); },