reactive-table
reactive-table copied to clipboard
ReactiveTable.publish not working
I have publication like this :
export const Trees = new Mongo.Collection('trees');
ReactiveTable.publish("trees.all", Trees);
but when I subscribe it
Meteor.subscribe('trees.all');
no data in client
I want to do server side pagination with this.
I had the same issue, the solution is to not use Meteor.subscribe because this package uses its own internal collection which you subscribe to like this when calling the reactiveTable template with spacebars:
{{> reactiveTable
collection="trees.all"
fields=fields
settings=settings
}}