I'm autosubscribing to a collection defined both on the client and the server via the same code.
I am console logging the subscription and the fields I specify in the Meteor.autosubscribe function. I see that it is correct.
The publish observes changes for the collection and the fields. I am observing both changes and additions. I console log there and I see that it updates correctly with the fields I want.
I then respond to user input which makes a method call which updates the collection I am observing and subscribed to and publishing and make changes. I console log those changes, and I see that they are correct.
I then autorun with a function for changes on this collection, using the same fields or all fields or anything. I console log here and I see it publish nothing ever. Same collection, fields or not, whatever I do nothing happens.
I search the collection via webinspector it is not uptodate.
The subscription is correct I know that it is so.
The changes are made in the db, I know that it is so, I see the console log statements.
The publish is publishing on changes, I see that it is so.
But the client does not get the data!
When I refresh the page I get the data!
It only breaks with this collection! Everywhere else this works perfectly.
What could possibly be the matter? I am about to start deleting everything in my app until I have I can reduce it to the least common reproducible point.
I have wasted hours on this already. It makes no sense.
Any help is appreciated. Thank you.
Bjorn