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

@@ -9,6 +9,7 @@ import InlineItemCreate from '@/components/InlineItemCreate'
import ListDetailView from '@/components/ListDetailView'
export const dynamic = 'force-dynamic'
export const revalidate = 0
export default async function ListDetailPage({ params }: { params: { id: string } }) {
const session = await getServerSession(authOptions)