sdy

remove useEffect dependency

......@@ -156,7 +156,7 @@ export default ({
}) => {
const { pathname } = location;
const roomName = pathname.slice(1, pathname.length);
useEffect(() => subscribeToNewMessage(), []);
useEffect(() => subscribeToNewMessage());
return (
<Wrapper>
......