Real-time Updates Demo
Experience SWR's automatic refresh features and real-time data synchronization
Controls
Updates Stopped
SWR Key: /api/live-data (refreshInterval: 0ms)SWR Key: /api/messages (refreshInterval: 3000ms)
Live Data
Chat Messages
How to Use This Demo
- • Click "Start Auto-refresh" to begin real-time data updates
- • Send chat messages to see immediate cache updates
- • Check refreshInterval settings and auto-refresh behavior in DevTools
- • Use "Manual Refresh" to force revalidation of all caches