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:
2025-12-03 00:29:24 +00:00
parent bd61aaa5b2
commit fc5ad9f7af
6 changed files with 176 additions and 3 deletions

View File

@@ -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