reactive-table icon indicating copy to clipboard operation
reactive-table copied to clipboard

ReactiveTable.publish not working

Open yozawiratama opened this issue 4 years ago • 1 comments

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.

yozawiratama avatar Feb 09 '20 04:02 yozawiratama

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
                  }}

Alino avatar Feb 08 '21 17:02 Alino