Closed mitar closed 8 years ago
See the issue which lead me to this: https://github.com/peerlibrary/meteor-reactive-publish/issues/7
Yeah. That's a good idea, Could you send me a PR. I'm happy to take this in.
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.