Anyone knows how to remove this.userId and prevent restarting the publication when userId changes?

For the server-side reactive-publish package I am considering that it would be a great thing if we could get away with publish restart when userId changes on the connection. With reactivity there are other ways to handle that.

Does anyone know how to achieve this? So prevent restarting the publication when userId changes?

Let’s discuss it in this ticket: https://github.com/peerlibrary/meteor-reactive-publish/issues/1

Getting rid of publish restart when userId changes would be very useful for other situations as well (see here). But from what I understood of Meteor source code, I think there is no way to do it (without patching).