Showing
1 changed file
with
4 additions
and
3 deletions
... | @@ -7,9 +7,7 @@ import useInput from "../../Hooks/useInput"; | ... | @@ -7,9 +7,7 @@ import useInput from "../../Hooks/useInput"; |
7 | 7 | ||
8 | export default withRouter(({ location }) => { | 8 | export default withRouter(({ location }) => { |
9 | const [createMsg] = useMutation(NEW_MESSAGE); | 9 | const [createMsg] = useMutation(NEW_MESSAGE); |
10 | - const { | 10 | + const { data } = useSubscription(SUBSCRIPTION_MSG); |
11 | - data: { subMessage }, | ||
12 | - } = useSubscription(SUBSCRIPTION_MSG); | ||
13 | 11 | ||
14 | const message = useInput(""); | 12 | const message = useInput(""); |
15 | 13 | ||
... | @@ -17,6 +15,9 @@ export default withRouter(({ location }) => { | ... | @@ -17,6 +15,9 @@ export default withRouter(({ location }) => { |
17 | e.preventDefault(); | 15 | e.preventDefault(); |
18 | }; | 16 | }; |
19 | 17 | ||
18 | + console.log(data); | ||
19 | + console.log(createMsg); | ||
20 | + | ||
20 | return ( | 21 | return ( |
21 | <ChatPresenter location={location} message={message} onSubmit={onSubmit} /> | 22 | <ChatPresenter location={location} message={message} onSubmit={onSubmit} /> |
22 | ); | 23 | ); | ... | ... |
-
Please register or login to post a comment