In my container I am passing a session variable to my subscribe (which is passing it to my publish function).
Unfortunately the session variable (which holds the limit) is not initialized when it is passed to the subscribe function…
I tried to provide a default value for the parameter (tried both setting the default in the subscribe call and the publish function arguments, neither is working)
Does 1.3 have this feature? I thought it was ES2015 but is it es7?
let messagesSub = Meteor.subscribe('messages', Session.get( "messageLimit"));
the error:
Exception from sub messages id ZBqrs4yEnF8zZtwLC Error: Match error: Expected number, got null
I am initiating the session variable in a componentWillMount and the subscribe is happening in a react-komposer container that is the parent (I guess) of the component with the componentWillMount. I would think that if the session variable isn’t set yet, than it should trigger the publication to just use 10… but I guess not?