Skip to content

Allow nested template.autorun calls #148

Description

@mitar

For some reason this is not allowed. I do not understand why. I think something like this should be supported:

template.onCreated(function () {
  this.autorun(() => {
    this.autorun(() => {
      // do something
    });
  });
});

Ideally, the following would be equivalent:

template.onCreated(function () {
  this.autorun(() => {
    Tracker.autorun(() => {
      // do something
    });
  });
});

But this would then be a solution for this as well: meteor/meteor#4494

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions