Files
frontend/src/infrastructure/diff/index.ts
lafay 62b55aec31
All checks were successful
Frontend CI / ota-android (push) Successful in 14m38s
Frontend CI / build-android-apk (push) Successful in 1h0m2s
Frontend CI / build-and-push-web (push) Successful in 10m29s
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
2026-03-18 23:05:28 +08:00

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';