FLUTTER SWR EXAMPLE
Test stale-while-revalidate pattern with riverpod. Look; query_provider package
- Backend calls are made with ghibli-api
- Tested Provider.family to check if state are persisted in memory.
Screens
Main Screen | Movie Screen |
---|---|
Checklist
- Riverpod setup with backend calls.
- Cache the service returned response.
- Add a way to invalidate and refetch the data.