From d977c33cf5f24ef1f7efc7b26ba8149eca59d5c8 Mon Sep 17 00:00:00 2001 From: Riley Davis Date: Tue, 24 Jan 2017 12:13:56 -0700 Subject: [PATCH] refetch when you post a comment --- client/coral-embed-stream/src/Comment.js | 2 +- client/coral-embed-stream/src/Embed.js | 2 +- client/coral-plugin-commentbox/CommentBox.js | 8 ++++---- client/coral-plugin-replies/ReplyBox.js | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client/coral-embed-stream/src/Comment.js b/client/coral-embed-stream/src/Comment.js index e90bcd5cb..f734bce0b 100644 --- a/client/coral-embed-stream/src/Comment.js +++ b/client/coral-embed-stream/src/Comment.js @@ -132,7 +132,7 @@ class Comment extends React.Component { { this.state.replyBoxVisible ? { + commentPostedHandler={() => { console.log('replyPostedHandler'); this.setState({replyBoxVisible: false}); refetch(); diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index 66dcfe90f..1060d2cb3 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -120,7 +120,7 @@ class Embed extends Component { { user ? console.error(err)); diff --git a/client/coral-plugin-replies/ReplyBox.js b/client/coral-plugin-replies/ReplyBox.js index ac1a702f8..e7ef83086 100644 --- a/client/coral-plugin-replies/ReplyBox.js +++ b/client/coral-plugin-replies/ReplyBox.js @@ -3,10 +3,10 @@ import CommentBox from '../coral-plugin-commentbox/CommentBox'; const name = 'coral-plugin-replies'; -const ReplyBox = ({styles, postItem, assetId, authorId, addNotification, parentId, replyPostedHandler}) => ( +const ReplyBox = ({styles, postItem, assetId, authorId, addNotification, parentId, commentPostedHandler}) => (