-
Notifications
You must be signed in to change notification settings - Fork 80
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
PublishContext should inherit from Subscription #159
Comments
See the issue which lead me to this: peerlibrary/meteor-reactive-publish#7 |
Yeah. That's a good idea, You can get the Subscription class from here: https://github.com/meteorhacks/meteorx |
Hm, the issue is that it is not enough just to extend it, but one should also configure all fields correctly. Not sure if this is doable. Like where to get session information. |
Okay. That's a big project. Anyway, is there anyway we can build packages like yours without using those internals. If we can have a set of stuff we use, I think I can do something. |
I think I found a way. |
Awesome. Keep me posted. |
See #160. |
Hope we can close this and I merged @mitar's PR. |
Does this mean the issue is also fixed for FlowRouter SSR? Or just Fast Render for now? |
Just the FastRender. I'll do a release today. |
@SachaG published a new version of FlowRouter SSR. |
Because now is trying to mock Subscription, but not everything is there. Like
_session
,_subscriptionId
,_idFilter
and so on. I have quite some packages which extend publish handlers and use those internal values which will now not work inside SSR. Now, one option is that I manually make all of them work, or we just fixPublishContext
to be more compatible with normal subscription.The text was updated successfully, but these errors were encountered: