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

[SSR] Issue with publish-counts package #569

Closed
SachaG opened this issue Mar 24, 2016 · 2 comments
Closed

[SSR] Issue with publish-counts package #569

SachaG opened this issue Mar 24, 2016 · 2 comments

Comments

@SachaG
Copy link

SachaG commented Mar 24, 2016

(Cross-posted from percolatestudio/publish-counts#80)

Basically, calling Counts.publish() inside a publication seems to be preventing FlowRouter from subscribing to that publication when performing SSR. As a result the collection is empty inside the FlowRouter SSR simulation.

As soon as I comment out Counts.publish(), FlowRouter SSR finds the documents again.

@tmeasday
Copy link

It's not obvious to me why this would break FR, but I don't know exactly how it monkey patches publish..

@SachaG
Copy link
Author

SachaG commented Jun 6, 2016

I figured it out: to prevent this from happening, make sure you call Counts.publish with the {noReady: true} option.

@SachaG SachaG closed this as completed Jun 6, 2016
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