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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user