Closed marcmunro closed 8 years ago
Are you able to fix?
Not so far. I'm still trying to understand what is going on - I'm new to Meteor. I plan to spend today looking into this in more detail. I'll report back.
OK, this was the result of my misunderstanding of the minimongo API.
I have a simple counter updated by the following code when a button is pressed:
My button (hacked from the default meteor app) looks like:
And my helper for hello is:
When I click on the button, I see a definite flicker as the counter first shows an empty value and then catches up with the value from the database. My client-side console log looks like:
So, am I using the wrong method to fetch from my Buttons table, or is the minimongo state not being updated in line with the server?
I can provide the full code if needed.