Temporarily disable message loading logic

- Comment out dispatch(fetchHistoryMessages) in ChatPanel.tsx.
- Add TODO comment explaining the reason for disabling the logic.
This commit is contained in:
Rankin Zheng 2023-06-15 20:52:33 +08:00
parent 799c87abcf
commit fdbe1d0565

View File

@ -121,7 +121,8 @@ const chatPanel = () => {
} else if (isTop) {
dispatch(onMessagesTop());
if (!isLastPage) {
dispatch(fetchHistoryMessages({ pageIndex: pageIndex + 1 }));
//TODO: Data loading flickers and has poor performance, so I temporarily disabled the loading logic.
// dispatch(fetchHistoryMessages({ pageIndex: pageIndex + 1 }));
}
} else {
dispatch(onMessagesMiddle());