Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReactiveTable.publish not working #492

Open
yozawiratama opened this issue Feb 9, 2020 · 1 comment
Open

ReactiveTable.publish not working #492

yozawiratama opened this issue Feb 9, 2020 · 1 comment

Comments

@yozawiratama
Copy link

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.

@Alino
Copy link

Alino commented Feb 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants