Skip to content

Commit

Permalink
channel is switchable too
Browse files Browse the repository at this point in the history
  • Loading branch information
maapteh committed Oct 12, 2020
1 parent 1375205 commit 7904ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/chat/src/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const Room = ({ channel, name }) => {

return () => subscription();

}, [subscribeToMore]);
}, [subscribeToMore, channel]);

// auto scroll down
useEffect(() => {
Expand Down

0 comments on commit 7904ef6

Please sign in to comment.