From 7904ef6fc5f481a4df5938d3cda34919c2160db7 Mon Sep 17 00:00:00 2001 From: maapteh <maarten@oudenniel.nl> Date: Mon, 12 Oct 2020 16:12:28 +0200 Subject: [PATCH] channel is switchable too --- example/chat/src/Room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/chat/src/Room.js b/example/chat/src/Room.js index 9c254ab6e1a..1964649b79e 100644 --- a/example/chat/src/Room.js +++ b/example/chat/src/Room.js @@ -130,7 +130,7 @@ export const Room = ({ channel, name }) => { return () => subscription(); - }, [subscribeToMore]); + }, [subscribeToMore, channel]); // auto scroll down useEffect(() => {