Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-23 06:09:16 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7d8db762586265c581ab97a4fc832b13b62707dd
7d8db762
1 parent
1bdc2f52
change useSubscription destructor
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
front/src/Routes/Chat/ChatContainer.js
front/src/Routes/Chat/ChatContainer.js
View file @
7d8db76
...
...
@@ -7,9 +7,7 @@ import useInput from "../../Hooks/useInput";
export
default
withRouter
(({
location
})
=>
{
const
[
createMsg
]
=
useMutation
(
NEW_MESSAGE
);
const
{
data
:
{
subMessage
},
}
=
useSubscription
(
SUBSCRIPTION_MSG
);
const
{
data
}
=
useSubscription
(
SUBSCRIPTION_MSG
);
const
message
=
useInput
(
""
);
...
...
@@ -17,6 +15,9 @@ export default withRouter(({ location }) => {
e
.
preventDefault
();
};
console
.
log
(
data
);
console
.
log
(
createMsg
);
return
(
<
ChatPresenter
location
=
{
location
}
message
=
{
message
}
onSubmit
=
{
onSubmit
}
/
>
);
...
...
Please
register
or
login
to post a comment