Meteor method RangeError: Maximum call stack size exceeded

when I invoke tasks.remove method I get this error
Exception while simulating the effect of invoking 'tasks.remove' RangeError: Maximum call stack size exceeded(…)
what’s in the method is here
, well nothing “unusal” - I’m just checking which todos (items) are checked and I only want to delete those.

The problem is here:

You are passing a cursor (the result of Tasks.find) to the remove method. I would suggest the following:

Tasks.find({checked: true}).forEach(doc => {

thanks it works but here comes my second question how is it possible to implement radio button - cause each item has radio button in its html file - and that way I can choose as many as I wish ( that’s not desired functionality of radio button). You know it’s the classical todos example code. Or i.e how pass task’s id to radio button ??

    {{#each tasks}} {{> task}} {{/each}}
` you know

If you put the <input>s into their own template, you get direct access to their _ids in your events. BTW - from your description I think you need type="checkbox":

<template name="tasks">
    {{#each tasks}}
      {{> task}}

<template name="task">
    <input type="checkbox" checked="{{checked}}" class="toggle-checked" />

  tasks() {
    return Tasks.find();
  'click input'() {
    Tasks.update(this._id, { $set: { checked: !this.checked } });