/riverpod_query_provider

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

Primary LanguageDartMIT LicenseMIT

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.