Improve real-time sync with 1-second polling and visual indicator
- Reduced polling interval from 2s to 1s for near-instant updates - Added SyncIndicator component to show sync status - Added console logging to debug sync behavior - Updates across devices now appear within 1 second - Visual feedback shows when data is being refreshed
This commit is contained in:
@@ -78,7 +78,7 @@ export default function ListDetailView({
|
||||
useRealtimeSync({
|
||||
listId,
|
||||
enabled: true,
|
||||
pollInterval: 2000, // Poll every 2 seconds
|
||||
pollInterval: 1000, // Poll every 1 second for faster updates
|
||||
})
|
||||
|
||||
// Extract all unique tags from items
|
||||
|
||||
Reference in New Issue
Block a user