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
Lets say im showing a list of posts with each corresponding number of comments. For some reason i get the same number of comments for each post when ever i add or remove comments. This is happening when i do return Counts.get("comments-count") but it works fine if i do return Comments.find({postId: postId}).count();
This is my code so far:
Lets say im showing a list of posts with each corresponding number of comments. For some reason i get the same number of comments for each post when ever i add or remove comments. This is happening when i do return Counts.get("comments-count") but it works fine if i do return Comments.find({postId: postId}).count();
This is my code so far:
post_item.html
post_item.js
comments.js
The text was updated successfully, but these errors were encountered: