Skip to content

Fix subscription for latestApiBackends template #742

@brylie

Description

@brylie

PR #727 was merged with a global subscription. Update the latestApiBackends template to use a template level subscription.

Subscriptions should happen in the Template.created callback, rather than within template helpers. They should be attached to the template instance, rather than globally.

Template.latestApiBackends.created = function () {
  // Get named reference to Template instance
  let instance = this;

  // Subscribe to latest API Backends, template level
  instance.subscribe("latestApiBackends");
};

Please issue a hotfix pull-request for this subscription issue.

References

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions