Migration Guide
Migrate from other libraries to SoulCache
Migration Guide
This guide helps you migrate from other data fetching libraries to SoulCache.
From React Query
Setup
Hooks
Query Options
From SWR
Setup
Fetcher
Key Differences
| Feature | React Query | SWR | SoulCache |
|---|---|---|---|
| Runtime deps | 0 | 0 | 0 |
| Bundle size | ~12KB | ~4KB | ~8KB |
| TypeScript | Good | Good | Excellent |
| Plugin system | Yes | No | Yes |
| DevTools | Yes | No | Yes |
Migration Checklist
Migration Steps
- Install
@soulcache/coreand@soulcache/react - Replace QueryClient imports
- Replace hook imports
- Update query options
- Test all queries
- Update DevTools