Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create request caching service #9

Open
michaelneale opened this issue Sep 25, 2024 · 0 comments
Open

Create request caching service #9

michaelneale opened this issue Sep 25, 2024 · 0 comments
Labels
goose Ask goose to fix it

Comments

@michaelneale
Copy link
Owner

michaelneale commented Sep 25, 2024

This request caching service will be used to:

make requests to url
return cached data for url
request new data from backend at url
update cache for url
callers of this will get two responses, like a stream of data where the first response is the cached response and the second response is the network response

perhaps using this as a custom hook similar to https://tanstack.com/query/latest (but for dart of course and in the flutter code)

@michaelneale michaelneale added the goose Ask goose to fix it label Sep 25, 2024
@michaelneale michaelneale added goose Ask goose to fix it and removed goose Ask goose to fix it labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goose Ask goose to fix it
Projects
None yet
Development

No branches or pull requests

1 participant