New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meteor.autorun is not "autorunning" on Collection changes #471
Comments
BTW, I can confirm that the Test objects are being successfully inserted into the collection. The problem seems to be with the reactive context never being invalidated when the According to the documentation, "When called in a reactive context, |
If you look at the docs for the deps system, you'll see that it's On Fri, Nov 9, 2012 at 1:57 PM, speigg notifications@github.com wrote:
|
Ah, that explains everything. Thanks so much. |
I stucked on the same probleme, before finding the reason here. May be it could help people to add a little message in the server console when someone is trying to call Deps function on the server ? |
Yes. Just wasted about two hours on this exact issue with nairy a whisper that Deps.autorun was being used it ways not intended. |
Took me several months of Meteor before I bumped into this too. Using Then again, declarative programming is very clean and less error prone. Couldn't we entertain the idea of having deps on the server? |
Just ran into this today. Would also love to be able to use |
+1 for Deps.autorun on server or at least a WARNING. I just spent the last hour trying to figure out why it wasn't re-running when I thought it should. EDIT: re-reading apparently Deps.autorun does exist, its just missing reactive data sources. Either way it's a bit of a wart of the iso JS experience. |
…t-6.10.3 Update eslint-plugin-react to version 6.10.3 🚀
* Add link to PascalCase in c2 wiki * Point to Wikipedia
Is there any reason why inserts to the "test" collection bellow do not trigger an autorun in the reactive context?
My code:
My output:
The text was updated successfully, but these errors were encountered: