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:
parent
799c87abcf
commit
fdbe1d0565
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user