feat(infrastructure): add pagination, cache, and sync infrastructure
- 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
This commit is contained in:
40
src/infrastructure/diff/index.ts
Normal file
40
src/infrastructure/diff/index.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* 差异更新模块
|
||||
* 提供消息列表的增量更新功能,减少 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';
|
||||
Reference in New Issue
Block a user