Closed robomatic closed 6 years ago
I think you populating the reactive table using array data not "cursor". AFAIK, arrays are not reactive by nature in meteor.
Yes that's true but the rTableConfig helper is reactive and should rerun the whole reactive table template.
I'm not sure what's going on either, it's supposed to set up the table again if the template data has changed.
return {
collection: instance.products.get(),
showFilter: false,
showNavigationRowsPerPage: false,
rowsPerPage: instance.pageSize,
.....
}
This works for me, I removed the .get()
My collection array
collection.find().map(function(row) { do stuff return row})
, starts out empty then is populated but reactive table doesn't update.collection console log returns
[]
then[{_id: "663zMxMNqS48TgAKg" ... other fields }]
any idea what's going on?