Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -156,7 +156,7 @@ export default ({ | ... | @@ -156,7 +156,7 @@ export default ({ |
156 | }) => { | 156 | }) => { |
157 | const { pathname } = location; | 157 | const { pathname } = location; |
158 | const roomName = pathname.slice(1, pathname.length); | 158 | const roomName = pathname.slice(1, pathname.length); |
159 | - useEffect(() => subscribeToNewMessage(), []); | 159 | + useEffect(() => subscribeToNewMessage()); |
160 | 160 | ||
161 | return ( | 161 | return ( |
162 | <Wrapper> | 162 | <Wrapper> | ... | ... |
-
Please register or login to post a comment