We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19dce2f commit b1447b7Copy full SHA for b1447b7
frontend/src/components/view/feed/FeedContainer.vue
@@ -30,6 +30,7 @@ import TweetPreviewList from '../../common/TweetPreviewList.vue';
30
import NoContent from '../../common/NoContent.vue';
31
import NewTweetForm from './NewTweetForm.vue';
32
import { pusher } from '@/services/Pusher';
33
+import { SET_TWEET } from '@/store/modules/tweet/mutationTypes';
34
35
export default {
36
name: 'FeedContainer',
@@ -50,7 +51,7 @@ export default {
50
51
const channel = pusher.subscribe('private-tweets');
52
53
channel.bind('tweet.added', (data) => {
- console.log('Pusher:', JSON.stringify(data));
54
+ this.$store.commit(`tweet/${SET_TWEET}`, data.tweet);
55
});
56
},
57
0 commit comments