Array Keys Demo
Experience SWR patterns using array-form keys and cache independence
Filter Settings
SWR Key: ['/api/products', {category: "electronics", sortBy: "name", limit: 10}]SWR Key: '/api/analytics/products/electronics'
Product List
Category Analytics
How to Use This Demo
- • Changing filter settings creates independent cache with new array keys
- • Same parameter combinations share the same cache
- • Check array key format and cache independence in DevTools
- • Use "Clear All Cache" to delete all caches