You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not an aggregation issue, but a fundamental result of the way publications work.
In effect a publication only runs once - which means that anything you set outside of the query will only ever be computed the first time the publication is run. In your code, that's: const userId = uid ?? this.userId;
The way to get the effect you want is to ensure the publication is re-subscribed to from the client - the original publication is stopped and the new one takes over.
The documentation for this behaviour is a little hard to find, but some information with possible solutions is here.
I am trying to make this work for the past many hours but can't figure out what am I doing wrong.
I have a publish method
On another page, I have 2 subscriber code
Both of these subscriptions are returning the same results which are wrong as the match params have different IDs.
When I add a filter on the client-side, I get empty results.
How can I call subscribe multiple times on the same page but with different match IDs?
The text was updated successfully, but these errors were encountered: