KRTirtho / fl-query

Asynchronous data fetching & data invalidation libraries for Flutter
https://fl-query.krtirtho.dev/
Apache License 2.0
60 stars 11 forks source link

how to access the cache. #39

Closed affansk closed 11 months ago

affansk commented 11 months ago

I am using usequery hook on home screen, now i have to access that cache on other screen. I am looking for documentation but not able to find.

otherwise i have to use useQuery again

KRTirtho commented 11 months ago

You can create a custom hook with that useQuery function and re-use it in the another screen. For more modularity and re-use, you can use useQueryJob which takes a QueryJob which is reusable