Try putting your console.log in the container to see if a valid result ever returns. It may be that your subscription hasn’t loaded the results yet and you need your loading boolean to be true before seeing results.
I’ve try replace slug: slug to slug: “my-test” (URL existe) and it work.
But, on load page, the first console return post object undefined, ans after 1-2s, my data.
I think my problem is on my route, maybe the params is not passing to ArticleContainer ?
My publish method
const Post = new Mongo.Collection('post');
if (Meteor.isServer) {
// This code only runs on the server
Meteor.publish('post', function postPublication() {
return Post.find();
});
}
Meteor.methods({
I’ve try to place console.log in ArticleContainer, and slug is undefined