sdy

remove useEffect dependency

...@@ -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>
......