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-06-03 23:54:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b88837235fd6defbdef2405e98dda6a5553e5d80
b8883723
1 parent
401d3dad
remove useEffect dependency
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
front/src/Routes/Chat/ChatPresenter.js
front/src/Routes/Chat/ChatPresenter.js
View file @
b888372
...
...
@@ -156,7 +156,7 @@ export default ({
})
=>
{
const
{
pathname
}
=
location
;
const
roomName
=
pathname
.
slice
(
1
,
pathname
.
length
);
useEffect
(()
=>
subscribeToNewMessage
()
,
[]
);
useEffect
(()
=>
subscribeToNewMessage
());
return
(
<
Wrapper
>
...
...
Please
register
or
login
to post a comment