Skip to content

Fast render reinit will only load one document per collection... #2

@sferoze

Description

@sferoze

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions