kadirahq / fast-render

Render you app even before the DDP connection is live. - magic?
MIT License
560 stars 80 forks source link

How to populate 'null' collection #148

Closed avalanche1 closed 8 years ago

avalanche1 commented 8 years ago

How can I manually populate local collection = new Mongo.Collection(null) with FR-injected data?

arunoda commented 8 years ago

You can't do that. Local collection do not have any connection with the server. You need to manually populate it.

avalanche1 commented 8 years ago

If I do

Meteor.publish 'posts', -> Posts.find()
FastRender.route '/posts', -> this.subscribe('posts')`

the Posts collection gets populated automatically. So why I can not populate another collection?