aslagle / reactive-table

A reactive table designed for Meteor
https://atmospherejs.com/aslagle/reactive-table
Other
328 stars 138 forks source link

Bug report: #118

Open jpmolinamatute opened 9 years ago

jpmolinamatute commented 9 years ago

aparently, reactive-table has a conflict with Transparent Reactive Programming (reactive-dict) or it's just a bug that create and error Uncaught RangeError: Maximum call stack size exceeded between EJSON.clone, (anonymous function) and _.each._.forEach

my setup is something like this (very briefly): // t_table.html

//frameworks.html

// otherStuff.html

//frameworks.js Deps.autorun(function () { Template.frameworks.helpers({ allTables: function () { return frameworkModal.get("allTables"); } }); });

//otherStuff.js Template.otherStuff.events({ 'click #active-frameworks tbody tr button': function (event) { mytables.push({ tableData: {} }, { tableData: {} });

    frameworkModal.set("allTables", mytables);

} });

aslagle commented 9 years ago

I don't think this is related to reactive-table. I get that error just from trying to put a collection in a ReactiveDict. If I put a plain array in the ReactiveDict instead, reactive-table seems to handle it fine.

> var rd = new ReactiveDict
undefined
> rd.set('collection', Players)
Uncaught RangeError: Maximum call stack size exceeded 
jpmolinamatute commented 9 years ago

thanks for the explanation! I'll report this issue with the ReactiveDict people