post is visible immediately

master
Max 5 years ago
parent dc467d431a
commit 5b90ac638e

@ -49,6 +49,7 @@ export class FeedService {
const updatedposts = this.newPosts.getValue();
updatedposts.unshift(this.renderPost(response.json()));
this.newPosts.next(updatedposts);
this.posts.next(this.newPosts.getValue());
});
}
@ -84,6 +85,7 @@ export class FeedService {
const updatedposts = this.newPosts.getValue();
updatedposts.unshift(this.renderPost(response.json()));
this.newPosts.next(updatedposts);
this.posts.next(this.newPosts.getValue());
});
}

Loading…
Cancel
Save