Just wondering if anyone has a neat little trick to get this to work.
I have a default publication which goes to all logged in users. (publish some of the user document, plus some others).
There are circumstances when I need that publication to re-run.
The simplest and easiest way I have come up with getting this to work is by forcing a page refresh for the client…
I am sure there is a better way, any ideas?
edit:
By Auto Publication I mean one with a null name:
You’re correct, but in that subscription I only respond to logged in users.
In that auto subscription I return cursors for two collections - the user and another one.
If the user makes changes to their profile, it influences the other subscription - so I just need it to refresh itself.
The low level publish API is your friend in this case. If you don’t want to delve into that, then a package like redwood:publish-composite, which uses this API would work as well.