forked from kadirahq/fast-render
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
When I disconnect and then reconnect Meteor from the client, minimongo gets cleared upon reconnect. This is because Meteor tries to resume any subscriptions and since I am using fast render, the client does not subscribe to subscriptions. Thus minimongo gets cleared.
But the data is still in the head of the document because of fast render.
When I call
InjectData.getData('fast-render-data', function(payload) {
FastRender.init(payload);
});
It only reloads one document per collection. Why is this? I need to reload minimongo with all fast render data.
This is how I am using fast render
if (Meteor.isServer) {
FastRender.onAllRoutes(function(path) {
this.subscribe('displayModels');
this.subscribe('selectionRules');
this.subscribe('models');
this.subscribe('accessories');
this.subscribe('accessoryCategories');
this.subscribe('modelSpecifications');
});
FastRender.route('/build/:templateId', function(params) {
this.subscribe('modelTemplate', params.templateId);
this.subscribe('packageTemplate', params.templateId);
});
}
How can I reload minimongo with all fast render data?