- Add useRealtimeSync hook for polling server updates every 3 seconds - Create API endpoint to check last updated timestamp for lists - Integrate real-time sync into ListDetailView component - Automatically refresh when other users make changes to shared lists - Poll on interval and when page becomes visible again
14 lines
571 B
TypeScript
14 lines
571 B
TypeScript
/**
|
|
* Custom hooks for client-side state management
|
|
* Implements task 9 from the Ultimate Lists App specification
|
|
*/
|
|
|
|
export { useSearch } from './useSearch'
|
|
export { useFilters } from './useFilters'
|
|
export type { FilterState } from './useFilters'
|
|
export { useOptimisticUpdate, useOptimisticList } from './useOptimisticUpdate'
|
|
export { useScrollPosition, useContainerScrollPosition } from './useScrollPosition'
|
|
export { useOfflineSync } from './useOfflineSync'
|
|
export type { QueuedMutation } from './useOfflineSync'
|
|
export { useRealtimeSync } from './useRealtimeSync'
|