sdy

add useEffect dependencies

......@@ -49,7 +49,7 @@ export default withRouter(({ location }) => {
console.error(msgQueryError);
}
if (messageArr) {
setMessageArr(messageArr.seeAllMessage);
setMessageArr(messageArr.seeAllMessage, [msgQueryError, messageArr]);
}
}, [msgQueryyLoading]);
......