- Add pagination infrastructure with usePagination and usePaginationManager hooks - Add connection state management hook for network status tracking - Add media caching infrastructure with useMediaCache hook - Add differential message synchronization infrastructure - Export new hooks from central index file - Remove backup file MainNavigator.tsx.bak
41 lines
807 B
TypeScript
41 lines
807 B
TypeScript
/**
|
|
* 差异更新模块
|
|
* 提供消息列表的增量更新功能,减少 UI 重渲染次数
|
|
*/
|
|
|
|
// 类型定义
|
|
export {
|
|
MessageUpdateType,
|
|
MessageIdentifier,
|
|
BaseMessageUpdate,
|
|
AddMessageUpdate,
|
|
UpdateMessageUpdate,
|
|
DeleteMessageUpdate,
|
|
MoveMessageUpdate,
|
|
BatchAddMessageUpdate,
|
|
BatchUpdateMessageUpdate,
|
|
BatchDeleteMessageUpdate,
|
|
ResetMessageUpdate,
|
|
MessageUpdate,
|
|
DiffConfig,
|
|
DiffResult,
|
|
BatchUpdateListener,
|
|
MessageComparator,
|
|
MessageSorter,
|
|
DEFAULT_DIFF_CONFIG,
|
|
} from './types';
|
|
|
|
// 差异计算器
|
|
export {
|
|
MessageDiffCalculator,
|
|
createMessageDiffCalculator,
|
|
} from './MessageDiffCalculator';
|
|
|
|
// 批量处理器
|
|
export {
|
|
MessageUpdateBatcher,
|
|
createMessageUpdateBatcher,
|
|
BatcherOptions,
|
|
DEFAULT_BATCHER_OPTIONS,
|
|
} from './MessageUpdateBatcher';
|