Improve real-time sync speed and caching

- Reduced polling interval from 3s to 2s for faster updates
- Added revalidate = 0 to prevent Next.js caching
- Updates from other browsers now appear within 2 seconds
- Both home page and list detail pages sync faster
This commit is contained in:
2025-12-02 14:38:01 +00:00
parent 78bfcb7ac3
commit e6067e76cd
3 changed files with 4 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ export default function ListDetailView({
useRealtimeSync({
listId,
enabled: true,
pollInterval: 3000, // Poll every 3 seconds
pollInterval: 2000, // Poll every 2 seconds
})
// Extract all unique tags from items