Skip to content

Caching with flutter riverpod and looking into future providers. Example to demonstrate stale while revalidate pattern.

License

Notifications You must be signed in to change notification settings

dipeshdulal/riverpod_query_provider

Repository files navigation

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
main.png movie.png

Checklist

  • Riverpod setup with backend calls.
  • Cache the service returned response.
  • Add a way to invalidate and refetch the data.

About

Caching with flutter riverpod and looking into future providers. Example to demonstrate stale while revalidate pattern.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages